contrast-hugo/layouts/_default/list.html

23 lines
541 B
HTML
Raw Normal View History

2019-07-15 09:04:11 -04:00
{{ define "main" }}
2019-07-18 17:01:53 -04:00
{{ $Pages := .Pages }}
{{ if .IsHome }}
{{ $Pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ end }}
2019-07-15 09:04:11 -04:00
<article>
2019-12-21 16:27:34 -05:00
<header><h1>{{ .Title | default "Posts" | humanize }}</h1></header>
2019-07-15 09:04:11 -04:00
<ul class="archive">
2019-07-18 17:01:53 -04:00
{{- range $Pages }}
2019-07-15 09:04:11 -04:00
<li>
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{- end }}
</ul>
2019-07-18 17:49:19 -04:00
{{ .Content }}
2019-07-15 09:04:11 -04:00
</article>
2019-07-18 17:01:53 -04:00
{{ end }}