index.html 649 B

12345678910111213141516171819
  1. {{ define "main" }}
  2. {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
  3. {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
  4. {{ $filtered := ($pages | intersect $notHidden) }}
  5. {{ $pag := .Paginate ($filtered) }}
  6. <section class="article-list">
  7. {{ range $index, $element := $pag.Pages }}
  8. {{ partial "article-list/default" . }}
  9. {{ end }}
  10. </section>
  11. {{- partial "pagination.html" . -}}
  12. {{- partial "footer/footer" . -}}
  13. {{ end }}
  14. {{ define "right-sidebar" }}
  15. {{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }}
  16. {{ end }}