binario/layouts/index.html
vimux 0ed9f70323
Add main index page
The main index page shows only `mainSections` ("post" by default). You can set sections with "mainSections" config parameter.
2018-05-23 09:37:31 +03:00

14 lines
No EOL
497 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{{ with .Site.Params.cardsPerRow }} card--{{ . }}col{{ else }} card--2col{{ end }}">
{{ .Render "summary" }}
</div>
{{ end }}
</div>
{{ partial "pagination.html" . }}
</div>
{{ partial "footer.html" . }}