From: Kai Moritz Date: Sat, 22 Nov 2025 16:22:29 +0000 (+0100) Subject: WIP:refactor: display terms as term/number-buttons X-Git-Tag: hugo--cat-tag-pages~6 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=34238594c0eff170c966ea08de6d4d30dd8e8755;p=website WIP:refactor: display terms as term/number-buttons --- diff --git a/hugo/themes/thymeleaf/layouts/_partials/head.html b/hugo/themes/thymeleaf/layouts/_partials/head.html index 0fcb80cc..008382fb 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/head.html +++ b/hugo/themes/thymeleaf/layouts/_partials/head.html @@ -3,8 +3,4 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} -{{ with $style }} - -{{ end }} +{{ block "custom_css" . }}{{ end }} diff --git a/hugo/themes/thymeleaf/layouts/_partials/head/terms.css b/hugo/themes/thymeleaf/layouts/_partials/head/terms.css deleted file mode 100644 index 244614bc..00000000 --- a/hugo/themes/thymeleaf/layouts/_partials/head/terms.css +++ /dev/null @@ -1,18 +0,0 @@ -.terms-tags li { - display: inline-block; - margin: 10px; - font-weight: 500; -} - -.terms-tags a { - display: block; - padding: 3px 10px; - background: var(--tertiary); - border-radius: 6px; - transition: transform 0.1s; -} - -.terms-tags a:active { - background: var(--tertiary); - transform: scale(0.96); -} diff --git a/hugo/themes/thymeleaf/layouts/terms.html b/hugo/themes/thymeleaf/layouts/terms.html index 532563f9..35df26d5 100644 --- a/hugo/themes/thymeleaf/layouts/terms.html +++ b/hugo/themes/thymeleaf/layouts/terms.html @@ -1,9 +1,26 @@ -{{- define "main" }} +{{- define "custom_css" }} + +{{- end }} +{{- define "main" }} {{- if .Title }}