From c8cab1745fe190d3b6c47f22e5a28e266b5fe6e3 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 3 Dec 2025 19:12:04 +0100 Subject: [PATCH] WIP:thymeleaf:taxonomies-on-page --- hugo/themes/thymeleaf/layouts/_partials/terms.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hugo/themes/thymeleaf/layouts/_partials/terms.html b/hugo/themes/thymeleaf/layouts/_partials/terms.html index 50386a34..c0fad57a 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,7 +1,8 @@ {{- $page := .Page }} -{{- range $taxonomy, $allterms := .Page.Site.Taxonomies }} +{{- range .Page.Site.Taxonomies }}

{{ .Page.LinkTitle }}

-{{- $taxonomyPage := index .Page.Site.Taxonomies $taxonomy }} +{{- $taxonomyPage := . }} +{{- $taxonomy := .Page.Data.Plural }} {{- $terms := $page.GetTerms $taxonomy }}
num: {{ $terms.Len }}