From: Kai Moritz Date: Wed, 3 Dec 2025 18:12:04 +0000 (+0100) Subject: WIP:thymeleaf:taxonomies-on-page X-Git-Tag: hugo--mein-erstes-partial~2 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=c8cab1745fe190d3b6c47f22e5a28e266b5fe6e3;p=website WIP:thymeleaf:taxonomies-on-page --- diff --git a/hugo/themes/thymeleaf/layouts/_partials/terms.html b/hugo/themes/thymeleaf/layouts/_partials/terms.html index 50386a34..c0fad57a 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,7 +1,8 @@ {{- $page := .Page }} -{{- range $taxonomy, $allterms := .Page.Site.Taxonomies }} +{{- range .Page.Site.Taxonomies }}

{{ .Page.LinkTitle }}

-{{- $taxonomyPage := index .Page.Site.Taxonomies $taxonomy }} +{{- $taxonomyPage := . }} +{{- $taxonomy := .Page.Data.Plural }} {{- $terms := $page.GetTerms $taxonomy }}
num: {{ $terms.Len }}