You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until this point everything went Ok... I get a bunch of pages each one containing the corresponding images of the category.
/gallery/main
/gallery/work
/gallery/personal
The question is that some of these pages have a lot of images, so I'm looking for a way to paginate them again in a second level (each one of them containing 20 images or so) and get something like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a big global data JSON of images (
ìmages.json
) to build an image gallery with a structure like this (It's exported from a DB table):And also a related
category.json
Following this article, https://florian.ec/blog/eleventy-data-pages/ I was able to generate a single gallery page for each category (great).
My
gallery.njk
(the template I use to generate those pages) looks this way.The
filterById
returns a collection of the images of the corresponding category.Until this point everything went Ok... I get a bunch of pages each one containing the corresponding images of the category.
The question is that some of these pages have a lot of images, so I'm looking for a way to paginate them again in a second level (each one of them containing 20 images or so) and get something like:
I'm looking for a solution that will not imply
split
,cut
ordivide
theimages.json
if possible 👼Beta Was this translation helpful? Give feedback.
All reactions