thrrgilag.net/themes/binario/layouts/_default/list.html
Morgan McMillian 022c04d286 new site theme
2019-09-07 12:40:58 -07:00

18 lines
No EOL
632 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 and (ge ($.Param "columns") 1) (le ($.Param "columns") 3) }} card--{{ $.Param "columns" }}col{{ else }} card--2col{{ end }}">
{{ .Render "summary" }}
</div>
{{ end }}
</div>
</main>
{{ partial "pagination.html" . }}
{{ end }}