summaryrefslogtreecommitdiffstats
path: root/themes/Brine/layouts/_default/list.html
blob: b6d49e5c89aff8ce06e05022bcce5c10c307a887 (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>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</li>{{ end }}
	</ul>{{ partial "pagination.html" $ }}
{{ else }}
	{{ range .Pages.ByDate.Reverse }}
	<li><h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</li>
    {{ end }}
	</ul>
{{ end }}
{{ end }}