summaryrefslogtreecommitdiff
path: root/internal
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <montferrat@tuta.io> 2025-08-18 12:32:54 +0700
committerGravatar SayaAndy <montferrat@tuta.io> 2025-08-18 12:32:54 +0700
commit49a64e91e76b5970007c0be22b74942fee11df8a (patch)
treeadc19cfd89b6a6656d41e7547aa50680779b06ea /internal
parent7c7d637af91f99a39640e6be69a677cdac0efbb5 (diff)
downloadweb-49a64e91e76b5970007c0be22b74942fee11df8a.tar.gz
web-49a64e91e76b5970007c0be22b74942fee11df8a.zip
feat: add map page
Diffstat (limited to 'internal')
-rw-r--r--internal/b2/client.go1
-rw-r--r--internal/frontmatter/parser.go1
2 files changed, 1 insertions, 1 deletions
diff --git a/internal/b2/client.go b/internal/b2/client.go
index 5322b84..7b745a8 100644
--- a/internal/b2/client.go
+++ b/internal/b2/client.go
@@ -84,6 +84,7 @@ func (c *B2Client) Scan(prefix string) ([]*BlogPage, error) {
PublishedTime: publishedTime,
Thumbnail: attrs.Info["thumbnail"],
Tags: strings.Split(attrs.Info["tags"], ","),
+ Geolocation: attrs.Info["geolocation"],
},
})
}
diff --git a/internal/frontmatter/parser.go b/internal/frontmatter/parser.go
index 3c00a7f..1a521c0 100644
--- a/internal/frontmatter/parser.go
+++ b/internal/frontmatter/parser.go
@@ -16,7 +16,6 @@ type Metadata struct {
Thumbnail string `yaml:"thumbnail"`
Tags []string `yaml:"tags"`
Geolocation string `yaml:"geolocation"`
- Timezone string `yaml:"timezone"`
}
func ParseFrontmatter(content []byte) (metadata *Metadata, markdown []byte, err error) {