blob: d366d53b06c734198d4bb878f563030b6c429b8a (
plain) (
blame)
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
26
27
28
29
30
|
{{ define "main" }}
{{ $pages := .Pages }}
{{ $paginator := .Paginate $pages }}
<div class="flex flex-col gap-1">
<h1 class="text-2xl font-extrabold">
{{ if .Params.header }}
{{ .Params.header }}
{{ else }}
{{ .Title }}
{{ end }}
</h1>
{{ with .Content }}
{{ . }}
{{ end }}
</div>
<section class="flex flex-col gap-10">
{{ range $index, $pages := $paginator.Pages }}
{{ partial "list/default" . }}
{{ end }}
</section>
{{ if gt $paginator.TotalPages 1 }}
{{ partial "list/pagination" . }}
{{ end }}
{{ end }}
|