Usage
{{< slideshow from = "https://example.com/slide01.jpg" count = "5" [inner = "Click to view slides"] >}}Opens a fullscreen modal slideshow from a zero-padded numbered image sequence. Click the thumbnail (or custom trigger) to open; navigate with arrows or keyboard.
Description
Renders a clickable thumbnail that opens a fullscreen modal slideshow. Slides are fetched from a numbered image sequence derived from the first image URL — the digit count and padding are detected automatically from the filename (1–5 digits). Keyboard navigation and click-outside-to-close are supported.
Parameters
indicates required parameter
from =
"string"REQUIRED
Full URL of the first slide image, including the zero-padded sequence number
count =
"number"REQUIRED
Total number of slides to show
inner =
"HTML"first slide image
Custom trigger content rendered instead of the first-slide thumbnail
page =
"object"REQUIREDcurrent page
Hugo page context (automatically provided)
Examples
Basic slideshow from a remote image sequence
{{<hw t="slideshow" from="https://example.com/slides/img001.jpg" count="12">}}3-digit padding detected from
001 — generates img001.jpg through img012.jpgTwo-digit sequence starting at 01
{{<hw t="slideshow" from="https://mrmxf.com/get/deck/slide01.jpg" count="17">}}Sequence runs
slide01.jpg → slide17.jpgCustom trigger instead of thumbnail
{{<hw t="slideshow" from="https://example.com/frame0001.jpg" count="24">}}View the presentation{{</hw>}}inner content replaces the thumbnail; the modal loads on first click
Additional Information