2022-05-14 23:02:30 +00:00
|
|
|
{{ define "body" }}
|
2022-05-15 03:30:18 +00:00
|
|
|
|
2022-08-15 21:23:25 +00:00
|
|
|
{{ if ge .Payload.PrevPage 0 }}
|
2022-05-20 23:43:47 +00:00
|
|
|
<p>
|
2022-08-15 21:23:25 +00:00
|
|
|
<a href="?p={{ .Payload.PrevPage}}">< < Previous Page</a>
|
2022-05-20 23:43:47 +00:00
|
|
|
</p>
|
2022-08-17 03:55:32 +00:00
|
|
|
{{ else }}
|
|
|
|
<p>
|
2022-08-17 04:37:11 +00:00
|
|
|
Welcome to the Mediocre Blog! Posts are listed in chronological order. If
|
|
|
|
you aren't sure of where to start I recommend picking at random.
|
2022-08-17 03:55:32 +00:00
|
|
|
</p>
|
2022-08-15 21:23:25 +00:00
|
|
|
{{ end }}
|
2022-05-20 23:43:47 +00:00
|
|
|
|
2022-08-17 04:24:39 +00:00
|
|
|
<table>
|
2022-08-19 02:52:09 +00:00
|
|
|
|
|
|
|
<colgroup>
|
|
|
|
<col span="1" style="width: 5rem;">
|
|
|
|
</colgroup>
|
|
|
|
|
2022-05-17 21:54:20 +00:00
|
|
|
{{ range .Payload.Posts }}
|
2022-08-17 04:24:39 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{ DateTimeFormat .PublishedAt }}</td>
|
|
|
|
<td><a href="{{ PostURL .ID }}">{{ .Title }}</td>
|
|
|
|
<td><em>{{ .Description }}</em></td>
|
|
|
|
</tr>
|
2022-05-14 23:02:30 +00:00
|
|
|
{{ end }}
|
2022-08-17 04:24:39 +00:00
|
|
|
</table>
|
2022-05-14 23:02:30 +00:00
|
|
|
|
2022-08-15 21:23:25 +00:00
|
|
|
{{ if ge .Payload.NextPage 0 }}
|
|
|
|
<p>
|
|
|
|
<a href="?p={{ .Payload.NextPage}}">Next Page > ></a>
|
|
|
|
</p>
|
2022-05-15 03:30:18 +00:00
|
|
|
{{ end }}
|
2022-05-15 02:42:43 +00:00
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
2022-05-14 23:02:30 +00:00
|
|
|
{{ template "base.html" . }}
|