package builder
import "website/internal/config"
templ tagPage(config config.Config, tag string, posts []Post, path string) {
@page(config, PageSettings{
Title: tag,
Path: path,
TitleAttrs: templ.Attributes{
"class": "p-author h-card",
"rel": "author",
},
}) {
@list(posts)
}
}
templ listPage(config config.Config, posts []Post, path string) {
@page(config, PageSettings{
Title: config.Title,
TitleAttrs: templ.Attributes{
"class": "p-author h-card",
"rel": "author",
},
Path: path,
}) {
@list(posts)
}
}
templ list(posts []Post) {
}