Add pagination to category, tag, and issue pages (10 per page)

pagerSize set to 10 (5 columns × 2 rows). New pagination partial
renders prev/next links and numbered page buttons. Applied to
_default/list.html (categories + tags) and issues/list.html.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 18:33:21 +02:00
parent 84ff82ac44
commit 39cffeb0bc
4 changed files with 66 additions and 3 deletions
+3 -1
View File
@@ -24,12 +24,14 @@
{{- end }}
</section>
{{- $paginator := .Paginate .Pages }}
<section id="grid" data-density="default"
data-filter-type="{{ .Kind }}"
data-filter-value="{{ .Title }}"
class="grid [grid-template-columns:repeat(auto-fill,minmax(220px,1fr))] gap-[var(--gap)] px-[var(--pad)] py-[var(--gap)]">
{{- range $i, $p := .Pages }}
{{- range $i, $p := $paginator.Pages }}
{{- partial "card.html" (dict "Page" $p "Index" $i) }}
{{- end }}
</section>
{{- partial "pagination.html" $paginator }}
{{ end }}