diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-04-03 08:13:17 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-24 17:27:35 +0200 |
| commit | 4b24152d244798273a671e90df4a893826ffd6b4 (patch) | |
| tree | b86770cc3f3fbc70bbd3a99eb66aac684bafc044 /layouts | |
| parent | 665c954cb0afcb598775f0b676ff4736230b6ddf (diff) | |
Simplified categories
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/list.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 30435fe..96c9029 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,8 @@ {{ define "main" }} +{{ $pages := .Pages }} +{{ $paginator := .Paginate $pages }} + <div class="flex flex-col gap-1"> <h1 class="text-2xl font-extrabold"> {{ if .Params.header }} @@ -14,4 +17,14 @@ {{ end }} </div> +<section class="flex flex-col gap-10"> + {{ range $paginator.Pages }} + {{ partial "list/default" . }} + {{ end }} +</section> + +{{ if gt $paginator.TotalPages 1 }} + {{ partial "list/pagination" . }} +{{ end }} + {{ end }} |
