In _data/galleries/spring-break-2022.yml
DSCF3369-4.jpg:
description: "The Backpacker 1 at Cape Blanco"
date_taken: 2022-03-22
location: "Cape Blanco State Park, Oregon"
DSCF3643.jpg:
description: "Al at Harris Beach State Park"
date_taken: 2022-03-24
location: "Harris Beach State Park, Oregon"
DSCF3504.jpg:
description: "Al and camera at Cape Blanco"
date_taken: 2022-03-22
location: "Cape Blanco State Park, Oregon"
---
title: "Spring Break 2022"
gallery: spring-break-2022`
---
{% assign gallery = site.data.galleries[page.gallery] %}
(Note: I am missing a step. I am guessing I could get the gallery name without needing to put it in frontmatter, but this is what you get at 4 a.m.)
{%- for image in page.images -%}
{% assign image_data = gallery[image.name] %}
<div class="4u" style="float:left;">
<div class="rect-img-container">
<a href="{{image.name}}" data-lightbox="gallery" data-title="{{image_data.description}}"><img src="{{image.name}}_thumb.jpg" alt="{{image_data.description}}" class="rect-img" /></a>
</div>
</div>
{%- endfor -%}