I’d like to have a gallery page (
/gallery) that lists all images with a menu to filter those images by category (
A single image can belong to one or more categories. I have about 15 categories total and hundreds of images.
Here’s an example of what I’d imagine my
_data/images.yml file might look like:
- src: IMG_4567.jpg caption: Brick wall. categories: structures, masonry-walls - name: IMG_1234.jpg caption: Stone texture. categories: textures
Are collections (for the categories) and data files (for the images) the way to go here? Also, how would I retrieve images by category?