From: Kai Moritz Date: Wed, 3 Dec 2025 18:28:57 +0000 (+0100) Subject: WIP:thymeleaf:taxonomies-on-page X-Git-Tag: hugo--mein-erstes-partial X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=0813ef3c4be96987350f272a9537182c0f477501;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 ae49746f..550ed41a 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,13 +1,12 @@ {{- $page := .Page }} {{- range .Page.Site.Taxonomies }} -{{- $taxonomyPage := . }} -{{- $taxonomy := .Page.Data.Plural }} -{{- $terms := $page.GetTerms $taxonomy }} +{{- $taxonomy := . }} +{{- $terms := $page.GetTerms .Page.Data.Plural }} {{- if gt $terms.Len 0 }}

{{ .Page.LinkTitle }}

{{- end }}