Documentation
¶
Index ¶
- Variables
- func MakeIndex(posts []PostInfo, tmpl *template.Template, cfg *config.Config) error
- func MakeRSS(posts []PostInfo, tmpl *textTmpl.Template, cfg *config.Config) error
- func MakeRobotsTxt(cfg *config.Config) error
- func MakeSearchIndex(posts []PostInfo, cfg *config.Config) error
- func MakeSitemap(posts []PostInfo, cfg *config.Config) error
- type ColorPalette
- type Frontmatter
- type IndexData
- type PageData
- type PostInfo
- type SearchData
- type YamlDate
Constants ¶
This section is empty.
Variables ¶
View Source
var ColorSchemes = map[string]ColorPalette{
"gruvbox": {
Light: `--bg-color: #fbf1c7; --bg-secondary: #ebdbb2; --text-main: #3c3836; --text-muted: #7c6f64; --accent: #af3a03; --border: #d5c4a1; --code-bg: #f2e5bc;`,
Dark: `--bg-color: #282828; --bg-secondary: #3c3836; --text-main: #ebdbb2; --text-muted: #a89984; --accent: #fe8019; --border: #504945; --code-bg: #1d2021;`,
},
"tokyonight": {
Light: `--bg-color: #e1e2e7; --bg-secondary: #c4c8da; --text-main: #3760bf; --text-muted: #848cb5; --accent: #2e7de9; --border: #a8b5d1; --code-bg: #d0d5e3;`,
Dark: `--bg-color: #1a1b26; --bg-secondary: #24283b; --text-main: #c0caf5; --text-muted: #565f89; --accent: #7aa2f7; --border: #414868; --code-bg: #15161e;`,
},
"default": {
Light: `--bg-color: #f4edd8; --bg-secondary: #fdfaf3; --text-main: #3b2f2f; --text-muted: #796e65; --accent: #8b5a2b; --border: #d5c4a1; --code-bg: #eae3d0;`,
Dark: `--bg-color: #1e1915; --bg-secondary: #2c2421; --text-main: #e6dfcc; --text-muted: #9b8c7d; --accent: #d3864b; --border: #4a3d34; --code-bg: #15110e;`,
},
"dracula": {
Light: `--bg-color: #f8f8f2; --bg-secondary: #e9e9f4; --text-main: #282a36; --text-muted: #6272a4; --accent: #8b48f5; --border: #d7d7eb; --code-bg: #f0f0f8;`,
Dark: `--bg-color: #282a36; --bg-secondary: #44475a; --text-main: #f8f8f2; --text-muted: #6272a4; --accent: #bd93f9; --border: #44475a; --code-bg: #21222c;`,
}}
Functions ¶
func MakeRobotsTxt ¶ added in v1.2.1
func MakeSearchIndex ¶ added in v1.2.0
Types ¶
type ColorPalette ¶ added in v1.2.0
type Frontmatter ¶
type PostInfo ¶
type PostInfo struct {
Meta Frontmatter `json:",inline"`
URL string `json:"url"`
}
type SearchData ¶ added in v1.2.0
type SearchData struct {
Posts []PostInfo `json:"posts"`
}
Click to show internal directories.
Click to hide internal directories.