]> juplo.de Git - website/commitdiff
WIP:thymeleaf:taxonomies-on-page
authorKai Moritz <kai@juplo.de>
Tue, 2 Dec 2025 18:53:20 +0000 (19:53 +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 3c6c1e15385b2d66f628662280a114fcb28ad112..ad009da83a81db7371e37973e971f81979657f5f 100644 (file)
@@ -1,13 +1,10 @@
 {{- with $page := .Page }}
 {{- range $taxonomy, $terms := .Page.Site.Taxonomies }}
 <h3><a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a></h3>
-<div>$taxonomy: {{ $taxonomy }}</div>
-<h4>$page.GetTerms $taxonomy</h4>
-{{- with $page.GetTerms $taxonomy }}
-<pre>{{ debug.Dump . }}</pre>
+<h4>$taxonomy: {{ $taxonomy }}</h4>
+{{- with index .Page.Site.Taxonomies $taxonomy }}
+<pre>{{ debug.Dump .Page }}</pre>
 {{- end }}
-<h4>$terms</h4>
-<pre>{{ debug.Dump $terms }}</pre>
 <h4>List</h4>
 <ul>
   {{- range $term, $pages := $terms }}