From a259595df1a5f932d3a961ee785e853d4782a510 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 3 Dec 2025 19:21:42 +0100 Subject: [PATCH] WIP:thymeleaf:taxonomies-on-page --- hugo/themes/thymeleaf/layouts/_partials/terms.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hugo/themes/thymeleaf/layouts/_partials/terms.html b/hugo/themes/thymeleaf/layouts/_partials/terms.html index c0fad57a..ae49746f 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,13 +1,14 @@ {{- $page := .Page }} {{- range .Page.Site.Taxonomies }} -

{{ .Page.LinkTitle }}

{{- $taxonomyPage := . }} {{- $taxonomy := .Page.Data.Plural }} {{- $terms := $page.GetTerms $taxonomy }} -
num: {{ $terms.Len }}
+{{- if gt $terms.Len 0 }} +

{{ .Page.LinkTitle }}

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