18 lines
668 B
HTML
18 lines
668 B
HTML
{{- define "main" }}
|
|
{{- $showfull := default false $.Site.Params.showFullContent }}
|
|
{{- $pagepool := where $.Site.RegularPages "Type" "in" $.Site.Params.mainSections }}
|
|
{{- range $idx, $_ := (.Paginate $pagepool).Pages }}
|
|
{{- $contentlabel := cond $showfull "Content" "Summary" }}
|
|
<article{{ if and $showfull $idx }} class="post-divider"{{ end }}>
|
|
<h2 class="post-title">
|
|
{{ if .Draft }}DRAFT: {{ end }}<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
|
</h2>
|
|
{{ partial "post_meta.html" . }}
|
|
<section aria-label="{{ $contentlabel }}">
|
|
{{ cond $showfull .Content .Summary }}
|
|
</section>
|
|
</article>
|
|
{{- end }}
|
|
{{ partial "pagination.html" . }}
|
|
{{- end }}
|