From: Kai Moritz Date: Sat, 22 Nov 2025 15:29:22 +0000 (+0100) Subject: WIP:refactor: display terms as term/number-buttons X-Git-Tag: hugo--cat-tag-pages~10 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=210c0b8207c560c1e9d2dcac3cb13e66a41fca7f;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 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); +}