From 67dbc2f0fbed71e3169aa5df9b5b7b71f2ecb2cb Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 3 Dec 2025 18:09:52 +0100 Subject: [PATCH] WIP:thymeleaf:taxonomies-on-page --- hugo/themes/thymeleaf/layouts/_partials/terms.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hugo/themes/thymeleaf/layouts/_partials/terms.html b/hugo/themes/thymeleaf/layouts/_partials/terms.html index ad009da8..afa5c04a 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,17 +1,20 @@ -{{- with $page := .Page }} +{{- $page := .Page }} {{- range $taxonomy, $terms := .Page.Site.Taxonomies }}

{{ .Page.LinkTitle }}

$taxonomy: {{ $taxonomy }}

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

$taxonomyPage.Page

+
{{ debug.Dump $taxonomyPage.Page }}
+

$page.GetTerms $taxonomy

+
{{ debug.Dump ($page.GetTerms $taxonomy) }}

List

{{- end }} -{{- end }} -- 2.39.5