binario/layouts/index.html
2018-05-27 09:58:52 +03:00

14 lines
No EOL
512 B
HTML

{{ partial "header.html" . }}
<div class="main">
<div class="cards">
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
{{ $paginator := .Paginate ( where .Data.Pages "Section" "in" $mainSections ) }}
{{ range $paginator.Pages }}
<div class="card{{ if $.Param "cardsPerRow" }} card--{{ $.Param "cardsPerRow" }}col{{ else }} card--2col{{ end }}">
{{ .Render "summary" }}
</div>
{{ end }}
</div>
{{ partial "pagination.html" . }}
</div>
{{ partial "footer.html" . }}