diff options
Diffstat (limited to 'layouts/_default/section.html')
| -rw-r--r-- | layouts/_default/section.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..a27e808 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,19 @@ +{{ define "main" }} +<h1>{{ strings.Title .Section }}</h1> +<table style="width: 100%"> + <colgroup> + <col span="1" style="width: 10%;"> + <col span="1" style="width: 30%;"> + <col span="1" style="width: 60%;"> + </colgroup> + {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} + {{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }} + {{ range $index, $element := $paginator.Pages }} + <tr> + <td style="border: none; text-align: right;">{{ add $index 1 }}</td> + <td style="border: none; text-align: center;">{{ dateFormat "2006-01-02" $element.Date }}</td> + <td style="border: none;"><a href="{{ .RelPermalink }}">{{ $element.Title }}</a></td> + </tr> + {{ end }} +</table> +{{ end }}
\ No newline at end of file |
