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" }} {{ define "main" }}
{{ with .Content }} {{ with .Content }}
<section> <main>
{{ . }} {{ . }}
</section> </main>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

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

View File

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