From: Kai Moritz Date: Sat, 22 Nov 2025 14:26:43 +0000 (+0100) Subject: WIP:thymeleaf:taxonomies-on-page X-Git-Tag: hugo--mein-erstes-partial~38 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=2cadc3f4cc3b6feb6f8a19ab4734642cc70f61d9;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 8a6ebec2..35df26d5 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/terms.html +++ b/hugo/themes/thymeleaf/layouts/_partials/terms.html @@ -1,23 +1,49 @@ -{{- /* -For a given taxonomy, renders a list of terms assigned to the page. +{{- define "custom_css" }} + +{{- end }} +{{- define "main" }} -{{- with $page.GetTerms $taxonomy }} - {{- $label := (index . 0).Parent.LinkTitle }} -
-
{{ $label }}:
- -
+{{- if .Title }} + {{- end }} + + + +{{- end }}{{/* end main */ -}}