diff options
| author | 2026-03-29 02:05:06 +0700 | |
|---|---|---|
| committer | 2026-03-29 02:05:06 +0700 | |
| commit | 0a9de353b2456505b0b8214fab4a7c844d31735c (patch) | |
| tree | ae130f4617bab4b05f13521b1e701cd88f48d69f /internal/frontmatter | |
| parent | 610341bc9d59f9724e8e71f663b28df1904cb038 (diff) | |
| download | web-0a9de353b2456505b0b8214fab4a7c844d31735c.tar.gz web-0a9de353b2456505b0b8214fab4a7c844d31735c.zip | |
fix: add page metadata correctly
feat: link marker fill saturation and brightness in the global map to the publication date
Diffstat (limited to 'internal/frontmatter')
| -rw-r--r-- | internal/frontmatter/parser.go | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/internal/frontmatter/parser.go b/internal/frontmatter/parser.go index 83312dc..6062113 100644 --- a/internal/frontmatter/parser.go +++ b/internal/frontmatter/parser.go @@ -9,15 +9,16 @@ import ( ) type Metadata struct { - Title string `yaml:"title"` - ShortDescription string `yaml:"shortDescription"` - ActionDate string `yaml:"actionDate"` - PublishedTime time.Time `yaml:"publishedTime"` - Thumbnail string `yaml:"thumbnail"` - Tags []string `yaml:"tags"` - Geolocation string `yaml:"geolocation"` - Medley string `yaml:"medley"` - MedleyPart int `yaml:"medleyPart"` + Title string `yaml:"title"` + ShortDescription string `yaml:"shortDescription"` + ActionDate string `yaml:"actionDate"` + PublishedTime time.Time `yaml:"publishedTime"` + Thumbnail string `yaml:"thumbnail"` + Tags []string `yaml:"tags"` + Geolocation string `yaml:"geolocation"` + Medley string `yaml:"medley"` + MedleyPart int `yaml:"medleyPart"` + ContentSettings map[string]string `yaml:"contentSettings"` } func ParseFrontmatter(content []byte) (metadata *Metadata, markdown []byte, err error) { |