M templates/tags.templ →
templates/tags.templ import "go.alanpearce.eu/website/internal/config"
templ tagLink(tag string, attrs templ.Attributes) {
- <a { attrs... } href={ templ.SafeURL("/tags/" + tag) }>#{ tag }</a>
+ <a { attrs... } href={ templ.SafeURL("/tags/" + tag + "/") }>#{ tag }</a>
}
templ TagsPage(config *config.Config, title string, tags []string, path string) {