feat: add pagination to generated site category pages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Leon Mika 2026-03-22 14:38:39 +11:00
parent 30884372d6
commit f68bac809f
3 changed files with 71 additions and 15 deletions

View file

@ -8,4 +8,10 @@
{{ .HTML }}
{{ template "_post_meta.html" . }}
</div>
{{ end }}
{{ end }}
{{ if or .PrevURL .NextURL }}
<nav class="pagination">
{{ if .PrevURL }}<a href="{{ .PrevURL }}">← Newer posts</a>{{ end }}
{{ if .NextURL }}<a href="{{ .NextURL }}">Older posts →</a>{{ end }}
</nav>
{{ end }}