🖥️ 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"`
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user