🖥️ wip: Feed work
This commit is contained in:
3
main.go
3
main.go
@@ -31,6 +31,7 @@ type PageMeta struct {
|
||||
NavPosition *int `yaml:"navPosition"`
|
||||
Description string `yaml:"description"`
|
||||
Date string `yaml:"date"`
|
||||
FormattedDate string `yaml:"-"`
|
||||
Categories []string `yaml:"categories"`
|
||||
Slug string
|
||||
}
|
||||
@@ -310,6 +311,8 @@ func processBlogPost(file os.FileInfo, blogDir, outputDir string, tpl *template.
|
||||
"PageTemplate": "blog_post",
|
||||
})
|
||||
|
||||
meta.FormattedDate = meta.Date.Format(time.RFC1123Z)
|
||||
|
||||
*blogPosts = append(*blogPosts, meta)
|
||||
}
|
||||
|
||||
|
||||
@@ -231,9 +231,6 @@
|
||||
.mb-4 {
|
||||
margin-bottom: calc(var(--spacing) * 4);
|
||||
}
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
@@ -308,10 +305,6 @@
|
||||
--tw-font-weight: var(--font-weight-bold);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
.font-medium {
|
||||
--tw-font-weight: var(--font-weight-medium);
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
.text-green-700 {
|
||||
color: var(--color-green-700);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user