From 5123829807b9e9f70cb443ab1b068c44f08f6220 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 22 Nov 2025 17:16:39 +0100 Subject: [PATCH] WIP:refactor: display terms as term/number-buttons --- hugo/themes/thymeleaf/layouts/_partials/head.html | 2 +- hugo/themes/thymeleaf/layouts/terms.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hugo/themes/thymeleaf/layouts/_partials/head.html b/hugo/themes/thymeleaf/layouts/_partials/head.html index 1e072de9..0fcb80cc 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/head.html +++ b/hugo/themes/thymeleaf/layouts/_partials/head.html @@ -3,7 +3,7 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} -{{ with $ctx.style }} +{{ with $style }} diff --git a/hugo/themes/thymeleaf/layouts/terms.html b/hugo/themes/thymeleaf/layouts/terms.html index 9586c51c..532563f9 100644 --- a/hugo/themes/thymeleaf/layouts/terms.html +++ b/hugo/themes/thymeleaf/layouts/terms.html @@ -1,7 +1,8 @@ {{- define "main" }} +{{ $style := . }} {{ if not .Params.style }} - {{ $ctx = merge . (dict "style" "head/terms.css") }} + {{ $style = merge . (dict "style" "styles/default.css") }} {{ end }} {{- if .Title }} -- 2.39.5