Fix list.html partial: restore page block

This was accidentally broken in "Define Base Template (baseof.html)" (896326481e)
This commit is contained in:
vimux 2018-11-15 10:14:05 -05:00
parent ad7478c905
commit 982b2eae26
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -1,5 +1,11 @@
{{ 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 }}">