A internal/builder/tags.templ+package builder
+
+import "website/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) {
+ @page(config, PageSettings{
+ Title: title,
+ Path: path,
+ }) {
+ <h3 class="filter">Tags</h3>
+ <ul class="tags">
+ for _, tag := range tags {
+ <li class="h-feed">
+ @tagLink(tag, templ.Attributes{})
+ </li>
+ }
+ </ul>
+ }
+}