feat: add pagination to generated site post list

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Leon Mika 2026-03-22 14:37:42 +11:00
parent 550ebf728a
commit 30884372d6
4 changed files with 74 additions and 10 deletions

View file

@ -5,4 +5,10 @@
{{ 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 }}