]> juplo.de Git - website/commitdiff
thymeleafe-theme: WIP
authorKai Moritz <kai@juplo.de>
Mon, 8 Dec 2025 17:59:02 +0000 (18:59 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 8 Dec 2025 18:02:13 +0000 (19:02 +0100)
hugo/themes/thymeleaf/layouts/_partials/head.html
hugo/themes/thymeleaf/layouts/_partials/header.html
hugo/themes/thymeleaf/layouts/page.html

index 008382fb2adf7a6934212309335186c321939fd9..7fff1fcf50296fb7821ce46a6937920ba09b2cb6 100644 (file)
@@ -1,6 +1,7 @@
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width">
-<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
+<title class="title">{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
+<link id="canonical" rel="canonical" href="{{ .Page.RelPermalink }}">
 {{ partialCached "head/css.html" . }}
 {{ partialCached "head/js.html" . }}
 {{ block "custom_css" . }}{{ end }}
index 9d95bf041623f9ece206bba799387da4cb3d7064..50ae1778b15edb6002a6f77f0a92e9a2c9554f97 100644 (file)
@@ -1,4 +1,4 @@
-<h1 class="short_title">{{ site.Title }}</h1>
+<h1 class="short_title">{{ .Page.LinkTitle }}</h1>
 <h2>URI</h2>
 <ul>
   <li><strong>site:</strong> <code class="site_uri">{{ .RelPermalink }}</code></li>
index 1f53ceb94f7460cd498e9e6423ea5f5b8b426a89..98aa3f2861cea2887de6d2a31ed3d9c3a191830d 100644 (file)
@@ -1,4 +1,5 @@
 {{ define "main" }}
+<article class="maincontent">
   <h1>{{ .Title }}</h1>
 
   {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
@@ -7,4 +8,5 @@
 
   {{ .Content }}
   {{ partial "terms.html" . }}
+</article>
 {{ end }}