From 590ddfcf8bd1e32545ab35762576d0e12e95375d Mon Sep 17 00:00:00 2001 From: shaojiemike <943648187@qq.com> Date: Sun, 2 Jun 2024 23:21:56 +0800 Subject: [PATCH] fix: add default 12 limit --- layouts/events/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/events/list.html b/layouts/events/list.html index 0695a4c..d198107 100644 --- a/layouts/events/list.html +++ b/layouts/events/list.html @@ -9,8 +9,8 @@

{{ .Params.title | safeHTML }}

- - {{ $paginator := .Paginate .Data.Pages 8 }} + {{ $paginate := .Params.Paginate | default 12 }} + {{ $paginator := .Paginate .Data.Pages $paginate }} {{ range $paginator.Pages }}