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