satelito

Static [web] site (or page) generator (ssg) made with Lua script.
git clone git://soucy.cc/satelito.git
Log | Files | Refs | README

commit 1dc9ed4884b38e1cdd276213b9286a29a3b8ccf2
parent 9b5ed7b6200cfc16f0b2331df5c29732527f755e
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu,  3 Mar 2022 15:34:06 -0500

Grap collection list for the pagination fallback on children

Diffstat:
Msatelito/site.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/satelito/site.lua b/satelito/site.lua @@ -45,7 +45,7 @@ function site.make(sitemap, templates, export, timestart) sitemap[i].pagination.prefix = sitemap[i].pagination.prefix or 'pg-' -- Split page children by pagination limit - paginated = list.set_pagination(sitemap[i].children, sitemap[i].pagination.limit) + paginated = list.set_pagination(sitemap[i].collection or sitemap[i].children, sitemap[i].pagination.limit) -- Set the pagination length sitemap[i].pagination.length = #paginated