<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Gallery on Leyline — Demo</title><link>https://jordinebot.github.io/hugo-leyline/tags/gallery/</link><description>Recent content in Gallery on Leyline — Demo</description><generator>Hugo 0.161.1</generator><language>en</language><atom:link href="https://jordinebot.github.io/hugo-leyline/tags/gallery/index.xml" rel="self" type="application/rss+xml"/><item><title>Gallery shortcode</title><link>https://jordinebot.github.io/hugo-leyline/posts/gallery-demo/</link><pubDate>Fri, 29 May 2026 10:00:00 +0200</pubDate><guid>https://jordinebot.github.io/hugo-leyline/posts/gallery-demo/</guid><description>&lt;p&gt;Leyline ships a &lt;code&gt;gallery&lt;/code&gt; shortcode that renders photos in a masonry column layout. Clicking any thumbnail opens a fullscreen lightbox with keyboard navigation.&lt;/p&gt;
&lt;h2 id="from-a-page-bundle-recommended"&gt;From a page bundle (recommended)&lt;/h2&gt;
&lt;p&gt;The cleanest setup is a &lt;strong&gt;leaf bundle&lt;/strong&gt;: a directory with an &lt;code&gt;index.md&lt;/code&gt; and the images alongside it.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;content/posts/my-post/
index.md
photo-01.jpg
photo-02.jpg
photo-03.jpg
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then in &lt;code&gt;index.md&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;{{&amp;lt; gallery match=&amp;#34;photo-*&amp;#34; &amp;gt;}}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Hugo processes every matched image into optimised WebP — a 600 px-wide thumbnail for the grid and up to 1600 px for the lightbox. Use a consistent prefix (&lt;code&gt;photo-&lt;/code&gt;, &lt;code&gt;img-&lt;/code&gt;, etc.) so the glob is predictable, and name files numerically to control display order.&lt;/p&gt;</description></item></channel></rss>