43 lines
1.3 KiB
Markdown
43 lines
1.3 KiB
Markdown
---
|
|
title: Image Gallery
|
|
description: Showcasing the built-in image gallery support
|
|
date: 2026-01-26
|
|
slug: image-gallery
|
|
image: helena-hertz-wWZzXlDpMog-unsplash.jpg
|
|
categories:
|
|
- Documentation
|
|
tags:
|
|
- Gallery
|
|
- Photoswipe
|
|
toc: false
|
|
---
|
|
|
|
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.
|
|
|
|
## Sample Gallery
|
|
|
|
 
|
|
|
|
 
|
|
|
|
## How it works
|
|
|
|
The gallery is powered by **Photoswipe** and a custom internal script. It automatically calculates the best layout for your images based on their aspect ratios.
|
|
|
|
To create a gallery, you just need to put multiple images in the same line (or paragraph).
|
|
|
|
### Syntax
|
|
|
|
```markdown
|
|
 
|
|
|
|
 
|
|
```
|
|
|
|
> **Note**: There should be two spaces between the images to ensure they stay in the same line in Markdown
|
|
|
|
---
|
|
|
|
Gallery Syntax inspired by [Typlog](https://typlog.com/)
|
|
|