🖥️ wip: Feed work

This commit is contained in:
Keith Solomon
2025-04-22 07:15:22 -05:00
parent 6dd7e8874e
commit 97526cf71f
2 changed files with 11 additions and 15 deletions

View File

@@ -31,6 +31,7 @@ type PageMeta struct {
NavPosition *int `yaml:"navPosition"` NavPosition *int `yaml:"navPosition"`
Description string `yaml:"description"` Description string `yaml:"description"`
Date string `yaml:"date"` Date string `yaml:"date"`
FormattedDate string `yaml:"-"`
Categories []string `yaml:"categories"` Categories []string `yaml:"categories"`
Slug string Slug string
} }
@@ -310,6 +311,8 @@ func processBlogPost(file os.FileInfo, blogDir, outputDir string, tpl *template.
"PageTemplate": "blog_post", "PageTemplate": "blog_post",
}) })
meta.FormattedDate = meta.Date.Format(time.RFC1123Z)
*blogPosts = append(*blogPosts, meta) *blogPosts = append(*blogPosts, meta)
} }

View File

@@ -231,9 +231,6 @@
.mb-4 { .mb-4 {
margin-bottom: calc(var(--spacing) * 4); margin-bottom: calc(var(--spacing) * 4);
} }
.block {
display: block;
}
.hidden { .hidden {
display: none; display: none;
} }
@@ -308,10 +305,6 @@
--tw-font-weight: var(--font-weight-bold); --tw-font-weight: var(--font-weight-bold);
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 { .text-green-700 {
color: var(--color-green-700); color: var(--color-green-700);
} }