2019-07-30 21:32:26 +00:00
|
|
|
{{ define "main" }}
|
2016-10-14 20:41:10 +00:00
|
|
|
<main>
|
2020-05-26 15:39:14 +00:00
|
|
|
{{ $listtitle := .Title }}
|
2019-07-30 21:32:26 +00:00
|
|
|
{{ if or .Title .Content }}
|
|
|
|
<div>
|
|
|
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
|
|
|
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2020-05-26 15:20:18 +00:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
{{ range .Paginator.Pages }}
|
|
|
|
<li>
|
|
|
|
<div class="post-title">
|
2020-05-26 15:39:14 +00:00
|
|
|
{{ if eq $listtitle "Posts" }}
|
|
|
|
{{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a>
|
|
|
|
{{ else }}
|
|
|
|
<a href="{{ .RelPermalink }}">{{.Title }}</a>
|
|
|
|
{{ end }}
|
2020-05-26 15:20:18 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2016-10-14 20:41:10 +00:00
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
</main>
|
2019-07-30 21:32:26 +00:00
|
|
|
{{ end }}
|