From 2cadc3f4cc3b6feb6f8a19ab4734642cc70f61d9 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 22 Nov 2025 15:26:43 +0100 Subject: [PATCH] WIP:thymeleaf:taxonomies-on-page --- .../thymeleaf/layouts/_partials/terms.html | 64 +++++++++++++------ 1 file changed, 45 insertions(+), 19 deletions(-) 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 */ -}} -- 2.39.5