]> juplo.de Git - website/commitdiff
WIP:refactor: display terms as term/number-buttons
authorKai Moritz <kai@juplo.de>
Sat, 22 Nov 2025 16:22:29 +0000 (17:22 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 22 Nov 2025 16:22:29 +0000 (17:22 +0100)
hugo/themes/thymeleaf/layouts/_partials/head.html
hugo/themes/thymeleaf/layouts/_partials/head/terms.css [deleted file]
hugo/themes/thymeleaf/layouts/terms.html

index 0fcb80cc746603efbcf0fa8bb574a0ad8e80fed6..008382fb2adf7a6934212309335186c321939fd9 100644 (file)
@@ -3,8 +3,4 @@
 <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
 {{ partialCached "head/css.html" . }}
 {{ partialCached "head/js.html" . }}
-{{ with $style }}
-<style>
-  {{ partial . $style | safeCSS }}
-</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 (file)
index 244614b..0000000
+++ /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);
-}
index 532563f9f04709d49f00258ec1248c926dbeb0aa..35df26d582ef8939946c76ffe056f994fbbba700 100644 (file)
@@ -1,9 +1,26 @@
-{{- define "main" }}
+{{- define "custom_css" }}
+<style>
+.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;
+}
 
-{{ $style := . }}
-{{ if not .Params.style }}
-  {{ $style = merge . (dict "style" "styles/default.css") }}
-{{ end }}
+.terms-tags a:active {
+    background: var(--tertiary);
+    transform: scale(0.96);
+}
+</style>
+{{- end }}
+{{- define "main" }}
 
 {{- if .Title }}
 <header class="page-header">