Add content to top of list templates if there are any.
This commit is contained in:
parent
f17836facc
commit
d806a8de65
1 changed files with 13 additions and 0 deletions
|
|
@ -1,6 +1,13 @@
|
|||
{{ define "main" -}}
|
||||
<main class="main layout__main">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
<div class="content">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ $paginator := .Paginate (.Pages) -}}
|
||||
{{ range $paginator.Pages -}}
|
||||
{{ .Render "summary"}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue