]> juplo.de Git - website/commitdiff
WIP:thymeleaf:taxonomies-on-page
authorKai Moritz <kai@juplo.de>
Wed, 3 Dec 2025 17:47:16 +0000 (18:47 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 3 Dec 2025 18:58:03 +0000 (19:58 +0100)
hugo/themes/thymeleaf/layouts/_partials/terms.html

index edb1c41a1b340f427eb7b8f89fdabba342f73ae4..665ad804c82674c088a189d66d2b9a953a83bbfb 100644 (file)
@@ -9,14 +9,4 @@
   <li><a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a> <span>{{ $taxonomyPage.Count .Page.Data.Term }}</span></li>
   {{- end }}
 </ul>
-<h4>List {{ $terms.Page }}</h4>
-<ul>
-  {{- range $term, $pages := $terms }}
-  {{- $termPath := printf "%s/%s" $taxonomyPage.Page.Path $term }}
-  <li>{{ $termPath}}: {{ $taxonomyPage.Count $term }}</li>
-  {{- if in ($page.GetTerms $taxonomy) $term }}
-  <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
-  {{- end }}
-  {{- end }}
-</ul>
 {{- end }}