From 69388ad581790f149fb2cf316408d59427e625e9 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 22 Nov 2025 17:03:20 +0100 Subject: [PATCH] WIP:refactor: display terms as term/number-buttons --- .../thymeleaf/layouts/_partials/head.html | 4 ++- hugo/themes/thymeleaf/layouts/tags/terms.html | 27 ------------------- .../layouts/{categories => }/terms.html | 4 +++ 3 files changed, 7 insertions(+), 28 deletions(-) delete mode 100644 hugo/themes/thymeleaf/layouts/tags/terms.html rename hugo/themes/thymeleaf/layouts/{categories => }/terms.html (87%) diff --git a/hugo/themes/thymeleaf/layouts/_partials/head.html b/hugo/themes/thymeleaf/layouts/_partials/head.html index f0a7d081..1e072de9 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/head.html +++ b/hugo/themes/thymeleaf/layouts/_partials/head.html @@ -3,6 +3,8 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} +{{ with $ctx.style }} +{{ end }} diff --git a/hugo/themes/thymeleaf/layouts/tags/terms.html b/hugo/themes/thymeleaf/layouts/tags/terms.html deleted file mode 100644 index 6fd26540..00000000 --- a/hugo/themes/thymeleaf/layouts/tags/terms.html +++ /dev/null @@ -1,27 +0,0 @@ -{{- define "main" }} - -{{- if .Title }} - -{{- end }} - - - -{{- end }}{{/* end main */ -}} diff --git a/hugo/themes/thymeleaf/layouts/categories/terms.html b/hugo/themes/thymeleaf/layouts/terms.html similarity index 87% rename from hugo/themes/thymeleaf/layouts/categories/terms.html rename to hugo/themes/thymeleaf/layouts/terms.html index 6fd26540..9586c51c 100644 --- a/hugo/themes/thymeleaf/layouts/categories/terms.html +++ b/hugo/themes/thymeleaf/layouts/terms.html @@ -1,5 +1,9 @@ {{- define "main" }} +{{ if not .Params.style }} + {{ $ctx = merge . (dict "style" "head/terms.css") }} +{{ end }} + {{- if .Title }}