]> juplo.de Git - website/commitdiff
WIP:cat/tag-pages
authorKai Moritz <kai@juplo.de>
Fri, 28 Nov 2025 09:47:16 +0000 (10:47 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 28 Nov 2025 09:47:16 +0000 (10:47 +0100)
hugo/themes/thymeleaf/layouts/term.html
hugo/themes/thymeleaf/layouts/terms.html

index c2e787519e61886e914c468f206485f570ce3b37..1e9a304b680a3e74f91a7df2dfcb54100328294f 100644 (file)
@@ -2,6 +2,6 @@
   <h1>{{ .Title }}</h1>
   {{ .Content }}
   {{ range .Pages }}
-    <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
+    <h2><a href="{{ $.Path }}{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
   {{ end }}
 {{ end }}
index 35df26d582ef8939946c76ffe056f994fbbba700..4bcaa6c650463b2be805c253b5c7a6c125a4e6ed 100644 (file)
@@ -40,7 +40,7 @@
     {{- $count := .Count }}
     {{- with site.GetPage (printf "/%s/%s" $type $name) }}
     <li>
-        <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
+        <a href="{{ printf "%s/%s/" .Path .File.BaseFilename }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
     </li>
     {{- end }}
     {{- end }}