Template Example

This presentation shows how to take advantage of reveal-hugo’s slide template feature.

Slide templates let you specify groups of slide attributes in one place and reuse them throughout the presentation.

Here’s an example of using a template called blue, defined in the front matter of this presentation’s _index.md file.

The template can contain any valid slide customization params:

background = "#0011DD"
transition = "zoom"

Then add it to any slide using the slide shortcode:

{{< slide template="blue" >}}

Templates can be specified in config.toml as well, for reusability across multiple presentations.

background = "#424242"
transition = "convex"