summaryrefslogblamecommitdiffstats
path: root/themes/Brine/layouts/_default/list.html
blob: f832443a1ba75f06463f2059aaafde2be0a21cde (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                             










                                                                                                                                                                                                                 
{{ define "main" }}	<h1>{{ .Title }}</h1>
<ul>
{{ if .IsHome }}
	{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }}
	<li><h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>{{ end }}
{{ else }}
	{{ range .Pages.ByDate.Reverse }}
	<li><h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>
    {{ end }}
{{ end }}
</ul>{{ partial "pagination.html" $ }}{{ end }}