binario/layouts/_default/list.html
vimux 982b2eae26
Fix list.html partial: restore page block
This was accidentally broken in "Define Base Template (baseof.html)" (896326481e)
2018-11-15 10:14:05 -05:00

18 lines
No EOL
600 B
HTML

{{ define "main" }}
<main class="main">
{{- if or .Title .Content }}
<div class="page block">
{{ with .Title }}<h1 class="page__title">{{ . }}</h1>{{ end }}
{{ with .Content }}<div class="page__content{{ if not $.Title }} page__content--notitle{{ end }}">{{ . }}</div>{{ end }}
</div>
{{- end }}
<div class="cards">
{{ range .Paginator.Pages }}
<div class="card{{ if $.Param "cardsPerRow" }} card--{{ $.Param "cardsPerRow" }}col{{ else }} card--2col{{ end }}">
{{ .Render "summary" }}
</div>
{{ end }}
</div>
</main>
{{ partial "pagination.html" . }}
{{ end }}