<?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 dantas.io</title><link>https://dantas.io/tags/gallery/</link><description>Recent content in Gallery on dantas.io</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Mon, 26 Jan 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://dantas.io/tags/gallery/index.xml" rel="self" type="application/rss+xml"/><item><title>Image Gallery</title><link>https://dantas.io/p/image-gallery/</link><pubDate>Mon, 26 Jan 2026 00:00:00 +0000</pubDate><guid>https://dantas.io/p/image-gallery/</guid><description>&lt;img src="https://dantas.io/" alt="Featured image of post Image Gallery" /&gt;&lt;p&gt;Stack theme has a built-in support for image galleries. It allows you to create a beautiful gallery by simply placing multiple images side-by-side.&lt;/p&gt;
&lt;h2 id="sample-gallery"&gt;Sample Gallery
&lt;/h2&gt;&lt;p&gt;&lt;img src="https://dantas.io/p/image-gallery/florian-klauer-nptLmg6jqDo-unsplash.jpg"
	width="667"
	height="1000"
	loading="lazy"
	
		alt="Photo by Florian Klauer on Unsplash"
	
 
	
		class="gallery-image" 
		data-flex-grow="66"
		data-flex-basis="160px"
	
&gt; &lt;img src="https://dantas.io/p/image-gallery/luca-bravo-alS7ewQ41M8-unsplash.jpg"
	width="1000"
	height="667"
	loading="lazy"
	
		alt="Photo by Luca Bravo on Unsplash"
	
 
	
		class="gallery-image" 
		data-flex-grow="149"
		data-flex-basis="359px"
	
&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://dantas.io/p/image-gallery/helena-hertz-wWZzXlDpMog-unsplash.jpg"
	width="1000"
	height="750"
	loading="lazy"
	
		alt="Photo by Helena Hertz on Unsplash"
	
 
	
		class="gallery-image" 
		data-flex-grow="133"
		data-flex-basis="320px"
	
&gt; &lt;img src="https://dantas.io/p/image-gallery/hudai-gayiran-3Od_VKcDEAA-unsplash.jpg"
	width="667"
	height="1000"
	loading="lazy"
	
		alt="Photo by Hudai Gayiran on Unsplash"
	
 
	
		class="gallery-image" 
		data-flex-grow="66"
		data-flex-basis="160px"
	
&gt;&lt;/p&gt;
&lt;h2 id="how-it-works"&gt;How it works
&lt;/h2&gt;&lt;p&gt;The gallery is powered by &lt;strong&gt;Photoswipe&lt;/strong&gt; and a custom internal script. It automatically calculates the best layout for your images based on their aspect ratios.&lt;/p&gt;
&lt;p&gt;To create a gallery, you just need to put multiple images in the same line (or paragraph).&lt;/p&gt;
&lt;h3 id="syntax"&gt;Syntax
&lt;/h3&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;span class="lnt"&gt;2
&lt;/span&gt;&lt;span class="lnt"&gt;3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-markdown" data-lang="markdown"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;![&lt;span class="nt"&gt;Image 1&lt;/span&gt;](&lt;span class="na"&gt;image1.jpg&lt;/span&gt;) ![&lt;span class="nt"&gt;Image 2&lt;/span&gt;](&lt;span class="na"&gt;image2.jpg&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;![&lt;span class="nt"&gt;Image 3&lt;/span&gt;](&lt;span class="na"&gt;image3.jpg&lt;/span&gt;) ![&lt;span class="nt"&gt;Image 4&lt;/span&gt;](&lt;span class="na"&gt;image4.jpg&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
 &lt;blockquote&gt;
 &lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: There should be two spaces between the images to ensure they stay in the same line in Markdown&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;hr&gt;
&lt;p&gt;Gallery Syntax inspired by &lt;a class="link" href="https://typlog.com/" target="_blank" rel="noopener"
 &gt;Typlog&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>