From: Kai Moritz Date: Wed, 3 Dec 2025 17:09:52 +0000 (+0100) Subject: WIP:thymeleaf:taxonomies-on-page X-Git-Tag: hugo--mein-erstes-partial~13 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=67dbc2f0fbed71e3169aa5df9b5b7b71f2ecb2cb;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 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 }}