Add header tag to title in list layouts so the title to not fall of the page. Minor other layout fixes.

This commit is contained in:
Fredrik Jonsson 2023-04-23 20:56:27 +02:00
commit a4b9df99b1

View file

@ -2,14 +2,16 @@
{{ define "main" -}}
<main class="main layout__main">
{{ with .Content -}}
<div class="content">
{{ .Content }}
{{ . }}
</div>
{{ end -}}
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections -}}
{{ $paginator := .Paginate $pages -}}
{{ range $paginator.Pages -}}
{{ .Render "summary"}}
{{ .Render "summary" }}
{{ end -}}
{{ partial "pagination.html" . }}