2018-11-03 14:23:41 +00:00
|
|
|
{{ define "main" }}
|
2018-11-14 18:34:07 +00:00
|
|
|
<main class="main">
|
2018-11-15 15:14:05 +00:00
|
|
|
{{- 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 }}
|
2018-11-14 18:34:07 +00:00
|
|
|
<div class="cards">
|
|
|
|
{{ range .Paginator.Pages }}
|
2018-11-26 19:09:11 +00:00
|
|
|
<div class="card{{ if and (ge ($.Param "cardsPerRow") 1) (le ($.Param "cardsPerRow") 3) }} card--{{ $.Param "cardsPerRow" }}col{{ else }} card--2col{{ end }}">
|
2018-11-14 18:34:07 +00:00
|
|
|
{{ .Render "summary" }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</main>
|
2018-11-03 14:23:41 +00:00
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
{{ end }}
|