Justified layout

The justified layout fills each row to the full container width at a consistent height, similar to Google Photos or Flickr. Set thumbnail-height to control the target row height in pixels.

The frontmatter above sets defaults for this page. Options set there apply to all the shortcodes in the document unless overridden by shortcode arguments.

With EXIF metadata

With show-exif: true and show-date: true (set in the YAML above), the lightbox caption area shows a dot-separated summary of whatever EXIF fields are present. Click any image to see it.

{{< photo-gallery >}}

Shortcode arguments override frontmatter

Any configuration option can be passed directly to the shortcode. Shortcode arguments take precedence over frontmatter for that call only, so you can set page-wide defaults and override per gallery as needed.

Here the same album is rendered with EXIF hidden, the download button removed, and a fade transition instead of the default zoom. A unique id is required when pointing two galleries at the same album with otherwise identical settings:

{{< photo-gallery img/ show-exif=false show-date=false show-download=false transition="fade" id="no-exif" >}}