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

20 lines
592 B
HTML
Raw Normal View History

2019-11-20 19:56:22 +01:00
{{- define "main" }}
2020-12-28 20:12:36 +01:00
{{- $showfull := default false $.Site.Params.showFullContent }}
{{- $pagepool := where $.Site.RegularPages "Type" "in" $.Site.Params.mainSections }}
{{- range $idx, $_ := (.Paginate $pagepool).Pages }}
<div{{ if and $showfull $idx }} class="post-divider"{{ end }}>
2019-11-20 19:56:22 +01:00
<div>
<h2 class="post-title">
{{ if .Draft }}DRAFT: {{ end }}
2020-12-28 20:12:36 +01:00
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
2019-11-20 19:56:22 +01:00
</h2>
{{ partial "post_meta.html" . }}
</div>
<div>
{{ cond $showfull .Content .Summary }}
</div>
2020-12-28 20:12:36 +01:00
</div>
2019-11-20 19:56:22 +01:00
{{- end }}
{{ partial "pagination.html" . }}
{{- end }}