]> juplo.de Git - website/commitdiff
thymeleaf-theme: Added available information about the current page
authorKai Moritz <kai@juplo.de>
Sat, 22 Nov 2025 11:20:03 +0000 (12:20 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 3 Dec 2025 20:22:02 +0000 (21:22 +0100)
hugo/themes/thymeleaf/layouts/_partials/header.html

index 7980a00e1e2613fa8adc68e98a99460bd6131422..98aa0e3d284b9c0cea198e2ee34dc0edb9eb0a25 100644 (file)
@@ -1,2 +1,10 @@
 <h1>{{ site.Title }}</h1>
+<h2>Hugo</h2>
+<ul>
+  <li><strong>.Path:</strong> <code class="logical_path">{{ .Path }}</code></li>
+  <li><strong>.Page.Permalink:</strong> <code class="">{{ .Page.Permalink }}</code></li>
+  <li><strong>.Page.RelPermalink:</strong> <code class="">{{ .Page.RelPermalink }}</code></li>
+  <li><strong>.CurrentSection:</strong> <code class="">{{ .CurrentSection }}</code></li>
+  <li><strong>.Data.Term:</strong> <code class="">{{ .Data.Term }}</code></li>
+</ul>
 {{ partial "menu.html" (dict "menuID" "main" "page" .) }}