From: Kai Moritz Date: Wed, 3 Dec 2025 18:03:54 +0000 (+0100) Subject: WIP:thymeleaf:taxonomies-on-page X-Git-Tag: hugo--mein-erstes-partial~3 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=c081df24f964969b396481d71d5cf727c22eb840;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 4e44e504..50386a34 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,7 +1,9 @@ {{- $page := .Page }} -{{- range $taxonomy, $terms := .Page.Site.Taxonomies }} +{{- range $taxonomy, $allterms := .Page.Site.Taxonomies }}

{{ .Page.LinkTitle }}

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