Layout weitermodeln

This commit is contained in:
2026-05-06 10:15:13 +02:00
parent 4d9bdb90c7
commit 7c0cf55ecc
3 changed files with 6 additions and 5 deletions
+3 -1
View File
@@ -1,12 +1,14 @@
{{ define "main" }}
{{ .Title }}
{{ .Content }}
<hr>
{{ range .Pages.ByDate }}
<a href="{{ .RelPermalink }}"><h2>{{ .Date.Format "2006-01-02" }}</h2></a>
<a href="{{ .RelPermalink }}"><h2>{{ .Title }}</h2></a>
{{ .Content }}
<hr>
{{ end }}
{{ end }}
+1 -1
View File
@@ -1,7 +1,7 @@
{{ define "title" }}SWP - {{ .Page.Title }}{{ end }}
{{ define "main" }}
<h2>{{ .Date.Format "2006-01-02" }}</h2>
<h2>{{ .Title }}</h2>
{{ .Content }}