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