Ajout de la pagination.
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-03-11 14:09:50 +01:00
parent d6d6b8e690
commit 5eeba425c9
3 changed files with 25 additions and 1 deletions
+5 -1
View File
@@ -3,7 +3,9 @@
{{ .Content }}
{{ range .RegularPagesRecursive.ByDate.Reverse }}
{{ $pages := .RegularPagesRecursive.ByDate.Reverse }}
{{ $pager := .Paginate $pages }}
{{ range $pager.Pages }}
<article>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
@@ -14,5 +16,7 @@
{{ end }}
</article>
{{ end }}
{{ partial "pagermenu.html" $pager }}
{{ end }}
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}