Gallery block

The Gallery block lets you define image collections with metadata and layout strategy.

Block fields

FieldTypeRequiredNotes
titlestringYesGallery title
captionstringYesDescription shown below the gallery
layout"grid" | "slideshow" | "comparison"YesVisual arrangement
itemsarrayYesImage entries

Each image item

FieldTypeRequiredNotes
urlstringYesImage URL
titlestringYesImage title
captionstringYesContextual description
creditsstringYesAttribution and copyright info

Layout options

grid shows all images at once and works well for comparison.

slideshow shows one image at a time and works well for sequential storytelling.

comparison overlays the images behind a draggable divider, so the viewer can reveal one over the other. It works well for before/after pairs and needs at least two images (with one, the gallery falls back to the grid).

Tips

  • Use stable URLs. Broken links degrade the whole block.
  • Always fill credits. Attribution should be explicit and complete.
  • Write meaningful captions. Explain relevance, not only what is visible.