blob: efbc9932706cf9b6919e25077d09a20e53d41ffd (
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
|
{{ define "main" }}
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
{{ $pages := .RegularPages }}
{{ if .Sections }}
{{ range $section := .Sections }}
{{ $pages = union $pages $section.Pages }}
{{ end }}
{{ end }}
{{ range (.Paginate $pages).Pages }}
{{ partial "list_preview" . }}
{{ end }}
{{ if len $pages }}
{{ partial "pagination.html" . }}
{{ end }}
{{ end }}
|