1
0
Fork 0

Update default layouts

This commit is contained in:
Luca 2023-01-14 12:50:55 +01:00
parent ee1960f02c
commit 1e7d962089
2 changed files with 8 additions and 11 deletions

View File

@ -1,8 +1,8 @@
{{ define "main" }}
{{ range .Pages }}
<article>
{{ range .Pages }}
<article>
<h2>{{ .Title }}</h2>
{{ .Content }}
</article>
{{ end }}
</article>
{{ end }}
{{ end }}

View File

@ -1,7 +1,4 @@
{{ define "title" }}
{{ .Title }} &ndash; {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}