blob: 6f79345c15d0825710ae148a6d2e4a7668c5e4e1 (
plain) (
tree)
|
|
{{ 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 }}
</ul>{{ partial "pagination.html" $ }}
{{ 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 }}
</ul>
{{ end }}
{{ end }}
|