From 210c0b8207c560c1e9d2dcac3cb13e66a41fca7f Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 22 Nov 2025 16:29:22 +0100 Subject: [PATCH] WIP:refactor: display terms as term/number-buttons --- .../thymeleaf/layouts/_partials/head.html | 3 +++ .../thymeleaf/layouts/_partials/head/terms.css | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 hugo/themes/thymeleaf/layouts/_partials/head/terms.css diff --git a/hugo/themes/thymeleaf/layouts/_partials/head.html b/hugo/themes/thymeleaf/layouts/_partials/head.html index 02c22401..f0a7d081 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/head.html +++ b/hugo/themes/thymeleaf/layouts/_partials/head.html @@ -3,3 +3,6 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} + diff --git a/hugo/themes/thymeleaf/layouts/_partials/head/terms.css b/hugo/themes/thymeleaf/layouts/_partials/head/terms.css new file mode 100644 index 00000000..244614bc --- /dev/null +++ b/hugo/themes/thymeleaf/layouts/_partials/head/terms.css @@ -0,0 +1,18 @@ +.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); +} -- 2.39.5