2022-05-14 23:02:30 +00:00
|
|
|
{{ define "body" }}
|
2022-05-15 03:30:18 +00:00
|
|
|
|
|
|
|
<ul id="posts-list">
|
|
|
|
|
2022-05-17 21:54:20 +00:00
|
|
|
{{ range .Payload.Posts }}
|
2022-05-15 03:30:18 +00:00
|
|
|
<li>
|
|
|
|
<h2>
|
|
|
|
<a href="posts/{{ .HTTPPath }}">{{ .Title }}</a>
|
|
|
|
</h2>
|
|
|
|
<span>{{ .PublishedAt.Format "2006-01-02" }}</span>
|
|
|
|
{{ if not .LastUpdatedAt.IsZero }}
|
|
|
|
<span>(Updated {{ .LastUpdatedAt.Format "2006-01-02" }})</span>
|
|
|
|
{{ end }}
|
|
|
|
<p>{{ .Description }}</p>
|
|
|
|
</li>
|
2022-05-14 23:02:30 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2022-05-15 03:30:18 +00:00
|
|
|
</ul>
|
2022-05-14 23:02:30 +00:00
|
|
|
|
2022-05-17 21:54:20 +00:00
|
|
|
{{ if or (ge .Payload.PrevPage 0) (ge .Payload.NextPage 0) }}
|
2022-05-15 03:30:18 +00:00
|
|
|
<div id="page-turner">
|
|
|
|
|
2022-05-17 21:54:20 +00:00
|
|
|
{{ if ge .Payload.PrevPage 0 }}
|
|
|
|
<a style="float: left;" href="?p={{ .Payload.PrevPage}}">Newer</a>
|
2022-05-15 03:30:18 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2022-05-17 21:54:20 +00:00
|
|
|
{{ if ge .Payload.NextPage 0 }}
|
|
|
|
<a style="float:right;" href="?p={{ .Payload.NextPage}}">Older</a>
|
2022-05-15 03:30:18 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-05-15 02:42:43 +00:00
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
2022-05-14 23:02:30 +00:00
|
|
|
{{ template "base.html" . }}
|