From: Kai Moritz Date: Tue, 2 Dec 2025 18:53:20 +0000 (+0100) Subject: WIP:thymeleaf:taxonomies-on-page X-Git-Tag: hugo--mein-erstes-partial~14 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=9c1d2f0e8108940fe8683dcb1d063761422e98c0;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 3c6c1e15..ad009da8 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,13 +1,10 @@ {{- with $page := .Page }} {{- range $taxonomy, $terms := .Page.Site.Taxonomies }}

{{ .Page.LinkTitle }}

-
$taxonomy: {{ $taxonomy }}
-

$page.GetTerms $taxonomy

-{{- with $page.GetTerms $taxonomy }} -
{{ debug.Dump . }}
+

$taxonomy: {{ $taxonomy }}

+{{- with index .Page.Site.Taxonomies $taxonomy }} +
{{ debug.Dump .Page }}
{{- end }} -

$terms

-
{{ debug.Dump $terms }}

List