diff --git a/main.go b/main.go index ea08e34..e92e5cd 100644 --- a/main.go +++ b/main.go @@ -25,14 +25,15 @@ type NavItem struct { } type PageMeta struct { - Title string `yaml:"title"` - NavTitle string `yaml:"navTitle"` - ShowInNav *bool `yaml:"showInNav"` - NavPosition *int `yaml:"navPosition"` - Description string `yaml:"description"` - Date string `yaml:"date"` - Categories []string `yaml:"categories"` - Slug string + Title string `yaml:"title"` + NavTitle string `yaml:"navTitle"` + ShowInNav *bool `yaml:"showInNav"` + NavPosition *int `yaml:"navPosition"` + Description string `yaml:"description"` + Date string `yaml:"date"` + FormattedDate string `yaml:"-"` + Categories []string `yaml:"categories"` + Slug string } var slugRegex = regexp.MustCompile(`[^a-z0-9]+`) @@ -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) } diff --git a/public/assets/style.css b/public/assets/style.css index a2200bd..7c31e4c 100644 --- a/public/assets/style.css +++ b/public/assets/style.css @@ -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); }