From dcf62d54d58349d63311d8f90fb400b67f0e452b Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 2 Dec 2025 18:49:58 +0100 Subject: [PATCH] WIP:thymeleaf:taxonomies-on-page --- hugo/themes/thymeleaf/layouts/_partials/terms.html | 13 ++++++++----- hugo/themes/thymeleaf/layouts/page.html | 4 ++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/hugo/themes/thymeleaf/layouts/_partials/terms.html b/hugo/themes/thymeleaf/layouts/_partials/terms.html index d1db8fa5..56b00675 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,12 +1,15 @@ {{- range $taxonomy, $terms := .Page.Site.Taxonomies }}

{{ .Page.LinkTitle }}

$taxonomy: {{ $taxonomy }}
-
-.Page.GetTerms $taxonomy: -{{- with $pageterms := .Page.GetTerms $taxonomy }} -
{{ debug.Dump $pageterms }}
+

.Page

+{{- with .Page }} +
{{ debug.Dump . }}
{{- end }} -
+

.Page.GetTerms $taxonomy

+{{- with .Page.Page.GetTerms "categories" }} +
{{ debug.Dump . }}
+{{- end }} +

List