This repository has been archived on 2024-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
hugo-theme-nocolor/layouts/index.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 }}