M templates/tags.templ →
templates/tags.templ package templates
-import "go.alanpearce.eu/homestead/internal/config"
-
templ tagLink(tag string, attrs templ.Attributes) {
<a { attrs... } href={ templ.SafeURL("/tags/" + tag + "/") }>#{ tag }</a>
}
-templ TagsPage(config *config.Config, title string, tags []string, path string) {
- @Layout(config, PageSettings{
+templ TagsPage(site SiteSettings, title string, tags []string, path string) {
+ @Layout(site, PageSettings{
Title: title,
Path: path,
}) {