M internal/builder/tags.templ →
templates/tags.templ-package builder
+package templates
import "website/internal/config"
<a { attrs... } href={ templ.SafeURL("/tags/" + tag) }>#{ tag }</a>
}
-templ tagsPage(config config.Config, title string, tags []string, path string) {
- @page(config, PageSettings{
+templ TagsPage(config config.Config, title string, tags []string, path string) {
+ @Page(config, PageSettings{
Title: title,
Path: path,
}) {