Slideshow Shortcode
The slideshow shortcode allows you to create an interactive image slider with optional captions.
It supports multiple images, custom width, and navigation buttons. Images can come from page resources (i.e. same folder as the markdown file) or the assets folder.
Usage
| |
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
| slidewidth | No | 100% | Width of the slideshow container (supports %, px, or rem) |
| caption | No | - | Optional main caption displayed below the slideshow |
| image1..image20 | No | - | Paths to images to include in the slideshow |
| caption1..caption20 | No | - | Optional captions for each corresponding image |
Note: You can include up to 20 images by default. The slideshow automatically skips any empty image parameters.
To increase the number of images that can be included in a slideshow.Go to config/params.toml and edit this:
1 2 3[slideshow] maxSize=20
Examples
Basic Slideshow
Slideshow With Custom Width and Main Caption
Journey through the Alps


