From 9c1d2f0e8108940fe8683dcb1d063761422e98c0 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 2 Dec 2025 19:53:20 +0100 Subject: [PATCH] WIP:thymeleaf:taxonomies-on-page --- hugo/themes/thymeleaf/layouts/_partials/terms.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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