summaryrefslogtreecommitdiffstats
path: root/themes/Brine/layouts/_default/list.html
blob: 89cb5db8bc23bcd4ac5221388aef16d9bc3411c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{ define "main" }}	<h1>{{ .Title }}</h1>
<ul>
{{ if .IsHome }}
	{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }}
	<li><h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>{{ end }}
	</ul>{{ partial "pagination.html" $ }}
{{ else }}
	{{ range .Pages.ByDate.Reverse }}
	<li><h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>
    {{ end }}
	</ul>
{{ end }}
{{ end }}