package templates
import "go.alanpearce.eu/homestead/internal/content"
templ TagPage(site SiteSettings, tag string, posts []*content.Post, path string) {
@Layout(site, PageSettings{
Title: tag,
Path: path,
TitleAttrs: templ.Attributes{
"class": "p-author h-card",
"rel": "author",
},
}) {
@list(posts)
}
}
templ ListPage(site SiteSettings, posts []*content.Post, path string) {
@Layout(site, PageSettings{
Title: site.Title,
TitleAttrs: templ.Attributes{
"class": "p-author h-card",
"rel": "author",
},
Path: path,
}) {
@list(posts)
}
}
templ list(posts []*content.Post) {
for _, post := range posts {
-
@postDate(post.Date, "dt-published")
{ post.Title }
}
}