Layout weitermodeln
This commit is contained in:
@@ -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
@@ -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
@@ -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 }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user