--- // Port of preview/pages/gallery.html (layout: default) import DefaultLayout from '@shared/layouts/DefaultLayout.astro'; import GalleryPhoto from '@shared/components/cards/GalleryPhoto.astro'; import Pagination from '@shared/components/ui/Pagination.astro'; import photos from '@data/photos.json'; import people from '@data/people.json'; // Liquid: photos | where: "horizontal", true — limit: 15; person = people[forloop.index0] const galleryPhotos = photos.filter((photo) => photo.horizontal).slice(0, 15); --- { galleryPhotos.map((photo, index) => ( )) }