2024-09-30 17:40:46 -04:00
|
|
|
{{/* Page layout used for blog list view and others. */}}
|
|
|
|
|
2022-08-02 14:05:56 -04:00
|
|
|
{{ define "main" }}
|
2022-08-03 13:38:47 -04:00
|
|
|
<h2>{{ .Title }}</h2>
|
2022-08-02 14:05:56 -04:00
|
|
|
|
2023-02-23 17:39:20 -05:00
|
|
|
<hr>
|
|
|
|
|
2024-02-19 14:39:10 -05:00
|
|
|
{{ $paginator := .Paginate .Pages }}
|
2023-04-10 16:08:45 -04:00
|
|
|
|
|
|
|
{{ if eq $paginator.PageNumber 1}}
|
2022-08-03 13:38:47 -04:00
|
|
|
{{ .Content }}
|
2023-04-10 16:08:45 -04:00
|
|
|
{{ end }}
|
2022-08-29 10:36:22 -04:00
|
|
|
|
2023-01-02 16:22:42 -05:00
|
|
|
<table>
|
2022-12-27 21:47:12 -05:00
|
|
|
<tr>
|
2023-01-02 16:22:42 -05:00
|
|
|
<th>Title</th>
|
|
|
|
<th>Summary</th>
|
|
|
|
<th>Date</th>
|
2022-12-27 21:47:12 -05:00
|
|
|
</tr>
|
2022-12-27 22:34:31 -05:00
|
|
|
|
2023-04-10 16:08:45 -04:00
|
|
|
{{ range $paginator.Pages }}
|
2022-12-27 22:34:31 -05:00
|
|
|
<tr>
|
2023-01-02 16:22:42 -05:00
|
|
|
<td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
|
2022-12-27 21:47:12 -05:00
|
|
|
|
2023-01-02 16:22:42 -05:00
|
|
|
<td>
|
2022-12-27 22:34:31 -05:00
|
|
|
{{ .Summary }}
|
|
|
|
</td>
|
2022-12-27 21:47:12 -05:00
|
|
|
|
2023-01-02 16:22:42 -05:00
|
|
|
<td>
|
2023-04-17 15:19:30 -04:00
|
|
|
<time datetime='{{ .Date.Format "2006-01-02" }}'>{{ .Date.Format "Jan 2, 2006"}}</time>
|
2022-12-27 22:34:31 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-27 21:47:12 -05:00
|
|
|
{{ end }}
|
|
|
|
</table>
|
2023-04-10 16:08:45 -04:00
|
|
|
|
|
|
|
<div style="text-align: center; margin-top: 10px;">
|
|
|
|
{{ with $paginator.Prev }}
|
|
|
|
<a style="float: left" href="{{ .URL }}">Prev</a>
|
|
|
|
{{ else }}
|
|
|
|
<span style="float: left">Prev</span>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<span style="display: inline-block;">{{ printf "Page %d" $paginator.PageNumber }}</span>
|
|
|
|
|
|
|
|
{{ with $paginator.Next }}
|
|
|
|
<a style="float: right" href="{{ .URL }}">Next</a>
|
|
|
|
{{ else }}
|
|
|
|
<span style="float: right">Next</span>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</div>
|
2022-08-02 14:05:56 -04:00
|
|
|
{{ end }}
|