]> juplo.de Git - website/commitdiff
WIP:thymeleaf:taxonomies-on-page
authorKai Moritz <kai@juplo.de>
Sun, 30 Nov 2025 17:11:21 +0000 (18:11 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 3 Dec 2025 18:58:03 +0000 (19:58 +0100)
hugo/themes/thymeleaf/layouts/_partials/terms.html

index ccc44dd9fa681642abb3b52601c92a70cc0867e5..50d8438f4614fc1c1776cb4daaf84d6e847e4bf6 100644 (file)
@@ -1,34 +1,5 @@
-<h3>.Site.Taxonomies.tags</h3>
-<pre>{{ .Site.Taxonomies.tags }}</pre>
-{{- with .Page.Site.Taxonomies }}
-{{- range $taxonomy, $terms := . }}
-<h3>$taxonomy</h3>
-<div>Count: {{ $terms.size }}</div>
-<pre>{{ debug.Dump $taxonomy }}</pre>
-<h3>$terms</h3>
-<pre>{{ debug.Dump $terms }}</pre>
-{{- end }}
-{{- end }}
-
-{{- 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;
-}
-
-.terms-tags a:active {
-    background: var(--tertiary);
-    transform: scale(0.96);
-}
-</style>
-{{- end }}
+<ul>
+  {{ range .Page.Site.Taxonomies.tags }}
+    <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
+  {{ end }}
+</ul>