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:
parent
eb27a1e023
commit
a4b9df99b1
1 changed files with 10 additions and 6 deletions
|
|
@ -1,16 +1,18 @@
|
|||
{{ define "main" -}}
|
||||
<main class="main layout__main">
|
||||
<header>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{ with .Content }}
|
||||
{{ with .Content -}}
|
||||
<div class="content">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
|
||||
{{ $paginator := .Paginate (.Pages) -}}
|
||||
{{ range $paginator.Pages -}}
|
||||
{{ .Render "summary"}}
|
||||
{{ .Render "summary" }}
|
||||
{{ end -}}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue