15 lines
412 B
HTML
15 lines
412 B
HTML
{{ define "main" }}
|
|
<main class="main list">
|
|
{{- with .Content }}
|
|
<div class="main-content">
|
|
{{ . }}
|
|
</div>
|
|
{{- end }}
|
|
{{- $postSections := ($.Param "postSections" | default (slice "posts")) }}
|
|
{{- $paginator := .Paginate ( where .Site.RegularPages "Section" "in" $postSections ) }}
|
|
{{- range $paginator.Pages }}
|
|
{{- .Render "summary" }}
|
|
{{- end }}
|
|
</main>
|
|
{{ partial "pagination.html" . }}
|
|
{{ end }} |