body section => main

This commit is contained in:
la Fleur 2020-11-15 16:26:56 +01:00
parent 0c03b64138
commit 847c223126
3 changed files with 9 additions and 8 deletions

View File

@ -1,8 +1,8 @@
{{ define "main" }}
{{ with .Content }}
<section>
<main>
{{ . }}
</section>
</main>
{{ end }}
{{ end }}

View File

@ -1,8 +1,9 @@
{{ define "main" }}
<section>
<h2>{{ .Title }}</h2>
<main>
{{ with .Content }}
<section>
{{ . }}
</section>
{{ end }}
<ul>
{{ range .Pages }}
@ -11,5 +12,5 @@
</li>
{{ end }}
</ul>
</section>
</main>
{{ end }}

View File

@ -1,5 +1,5 @@
{{ define "main" }}
<section>
<main>
<h1 class="post-title">
{{ .Title | markdownify }}
</h1>
@ -10,5 +10,5 @@
</div>
{{- end -}}
</div>
</section>
</main>
{{ end }}