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

index 1e072de98845e94c69b99d901dad190f266f2064..0fcb80cc746603efbcf0fa8bb574a0ad8e80fed6 100644 (file)
@@ -3,7 +3,7 @@
 <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
 {{ partialCached "head/css.html" . }}
 {{ partialCached "head/js.html" . }}
-{{ with $ctx.style }}
+{{ with $style }}
 <style>
   {{ partial . $style | safeCSS }}
 </style>
index 9586c51c8504617f85deedd11271f14150b21b28..532563f9f04709d49f00258ec1248c926dbeb0aa 100644 (file)
@@ -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 }}