Photo albums shown in the Gallery.
- Content location:
src/content/gallery/ - Images:
public/images/gallery/<event>/ - Rendered by: pages under
src/pages/gallery/viasrc/components/react/GalleryGrid.tsxandImageLightbox.tsx - Schema source of truth:
src/content/config.ts
-
Put the event photos in a new folder, e.g.
public/images/gallery/dac-2025/. -
Create a Markdown file in
src/content/gallery/, e.g.dac-conference-2025.md. -
Add the frontmatter:
--- title: "DAC Conference 2025" description: "Highlights from the lab's trip to DAC 2025." date: 2025-06-22 location: "San Francisco, CA" # optional coverImage: "/images/gallery/dac-2025/cover.jpg" images: - "/images/gallery/dac-2025/photo-1.jpg" - "/images/gallery/dac-2025/photo-2.jpg" - "/images/gallery/dac-2025/photo-3.jpg" ---
-
Validate:
npm run build.
dateis a real date (no quotes), e.g.2025-06-22.
- Add the image files to the album's folder under
public/images/gallery/<event>/. - Add their paths to the
imageslist in the album's Markdown file. - To change the thumbnail, update
coverImage. - Validate:
npm run build.
- Delete the album's Markdown file from
src/content/gallery/. - Optionally delete its image folder under
public/images/gallery/<event>/. - Validate:
npm run build.
| Field | Required | Notes |
|---|---|---|
title |
Yes | Album name |
description |
Yes | Short summary |
date |
Yes | Date value (unquoted), e.g. 2025-06-22 |
coverImage |
Yes | Thumbnail path |
images |
Yes | List of image paths |
location |
No | Where the event took place |