hugo-theme-stack/layouts/index.html

16 lines
515 B
HTML
Raw Normal View History

2020-08-22 13:20:08 +02:00
{{ define "main" }}
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $pag := .Paginate ($pages) }}
<section class="article-list">
{{ range $index, $element := $pag.Pages }}
{{ partial "article-list/default" . }}
{{ end }}
</section>
2020-08-22 13:20:08 +02:00
{{- partial "pagination.html" . -}}
{{- partial "footer/footer" . -}}
{{ end }}
{{ define "right-sidebar" }}
{{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }}
2020-08-22 13:20:08 +02:00
{{ end }}