Usage
{{< slideshow-static images = "slides/*" page = ".Page" [thumbProcess = "fit 400x300"] [inner = "Click to view slides"] >}}Build-time slideshow from page-bundle, assets, or static resources. Supports mixed SVG/PNG/JPG. For remote or numbered-sequence slideshows use tool/slideshow instead.
Description
Resolves slide images via tk/get-asset at build time, producing validated URLs for all slide types. Accepts a glob string matched against page-bundle resources, or an explicit slice of asset paths. Delegates rendering to tool/slideshow-core, sharing the same modal UX as tool/slideshow.
Parameters
indicates required parameter
images =
"string | slice"REQUIRED
Glob string matched against page-bundle resources (e.g.
slides/*), or an explicit slice of asset pathspage =
"object"REQUIREDcurrent page
Hugo page context (automatically provided)
thumbProcess =
"string"none (raw first slide)
img-process string applied to the first slide to produce the thumbnail (e.g.
fit 400x300). Omit to use the raw first image.inner =
"HTML"first slide image
Custom trigger content rendered instead of the first-slide thumbnail
Examples
Glob from page-bundle resources
{{<hw t="slideshow-static" images="slides/*">}}Resolves all resources matching
slides/* in the page bundle, in resource orderGlob with processed thumbnail
{{<hw t="slideshow-static" images="slides/*" thumbProcess="fit 400x300">}}First slide is fitted to 400×300 for the thumbnail; full images shown in modal
Explicit asset path slice (frontmatter)
{{<hw t="slideshow-static" images=.Page.Params.slides>}}Pass a frontmatter slice of asset paths; each resolved via get-asset
Additional Information