Fix list.html partial: restore page block
This was accidentally broken in "Define Base Template (baseof.html)" (896326481e
)
This commit is contained in:
parent
ad7478c905
commit
982b2eae26
1 changed files with 6 additions and 0 deletions
|
@ -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 }}">
|
||||
|
|
Loading…
Reference in a new issue