blob: 647b3ef44dc310f7b43943d640b1024a7fc0e485 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{{ define "main" }}
<h1 style="margin: 0 0 0.5em 0;">{{ .Title }}</h1>
{{$paginator := .Paginate (where .Site.Pages "Kind" "page").ByDate.Reverse 50 }}
<table style="width: 100%;">
<thead>
<tr>
<th style="max-width: 50px;">Date</th>
<th>Title</th>
<th>Section</th>
</tr>
</thead>
<tbody>
{{ range $paginator.Pages }}
<tr>
<td style="max-width: 50px;">
<time>{{- dateFormat .Site.Params.theme.dateFormat .Date }}</time>
</td>
<td><a href="{{ .Permalink }}">{{ .Title }}</a></td>
<td><a href="{{ .Section | relURL }}">{{ (.Site.GetPage .Section).Title }}</a></td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }}
|