2020-08-22 13:20:08 +02:00
|
|
|
{{ define "main" }}
|
2020-09-12 10:33:53 +02:00
|
|
|
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
2022-10-29 17:14:19 +02:00
|
|
|
{{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
|
|
|
|
{{ $filtered := ($pages | intersect $notHidden) }}
|
|
|
|
{{ $pag := .Paginate ($filtered) }}
|
|
|
|
|
2020-09-12 10:33:53 +02:00
|
|
|
<section class="article-list">
|
|
|
|
{{ range $index, $element := $pag.Pages }}
|
|
|
|
{{ partial "article-list/default" . }}
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
2020-08-22 13:20:08 +02:00
|
|
|
|
2020-09-12 10:33:53 +02:00
|
|
|
{{- partial "pagination.html" . -}}
|
2020-12-20 12:34:44 +01:00
|
|
|
{{- partial "footer/footer" . -}}
|
2020-09-12 10:33:53 +02:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "right-sidebar" }}
|
2022-02-26 23:45:25 +01:00
|
|
|
{{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }}
|
2020-08-22 13:20:08 +02:00
|
|
|
{{ end }}
|