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

19 lines
525 B
HTML
Raw Normal View History

2019-11-20 19:56:22 +01:00
{{- define "main" }}
{{ $showfull := cond (isset $.Site.Params "showfullcontent") $.Site.Params.showfullcontent false }}
{{- range $idx, $_ := .Paginator.Pages }}
<p {{ if and $showfull $idx }}class="post-divider"{{ end }}>
<div>
<h2 class="post-title">
{{ if .Draft }}DRAFT: {{ end }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
{{ partial "post_meta.html" . }}
</div>
<div>
{{ cond $showfull .Content .Summary }}
</div>
</p>
{{- end }}
{{ partial "pagination.html" . }}
{{- end }}