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
+2 -3
View File
@@ -1,5 +1,4 @@
body { body {
font-family: system-ui, sans-serif; font-family: system-ui, sans-serif;
margin: 0; margin: 0;
background-color: red;
} }
+3 -1
View File
@@ -1,12 +1,14 @@
{{ define "main" }} {{ define "main" }}
{{ .Title }}
{{ .Content }} {{ .Content }}
<hr> <hr>
{{ range .Pages.ByDate }} {{ range .Pages.ByDate }}
<a href="{{ .RelPermalink }}"><h2>{{ .Date.Format "2006-01-02" }}</h2></a> <a href="{{ .RelPermalink }}"><h2>{{ .Title }}</h2></a>
{{ .Content }} {{ .Content }}
<hr>
{{ end }} {{ end }}
{{ end }} {{ end }}
+1 -1
View File
@@ -1,7 +1,7 @@
{{ define "title" }}SWP - {{ .Page.Title }}{{ end }} {{ define "title" }}SWP - {{ .Page.Title }}{{ end }}
{{ define "main" }} {{ define "main" }}
<h2>{{ .Date.Format "2006-01-02" }}</h2> <h2>{{ .Title }}</h2>
{{ .Content }} {{ .Content }}