aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
blob: 577852fcab8b3fd15d823b795c0a1d6a45f40305 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

{{ 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>
{{ if .Content }}<p class="content text-lg text-gray-900">{{ .Content }}</p>{{ end }}
</div>

<section class="py-10 flex flex-col gap-10 ">
{{ range $index, $pages := $paginator.Pages }}
    {{ partial "list/default" . }}
{{ end }}
</section>

{{ partial "list/components/pagination" . }}

{{ end }}