diff options
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | layouts/_default/list.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..577852f --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,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 }}
\ No newline at end of file |
