website/layouts/index.html

11 lines
283 B
HTML
Raw Normal View History

2022-09-28 20:49:59 +00:00
{{ define "main" }}
<main>
<h1>Main page title</h1>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ end }}