This repository has been archived on 2024-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
vitrine/themes/reveal-hugo/exampleSite/content/template-example/_index.md

46 lines
827 B
Markdown
Raw Normal View History

2022-01-05 23:28:57 +01:00
+++
title = "Template presentation"
outputs = ["Reveal"]
[reveal_hugo]
theme = "night"
margin = 0.2
[reveal_hugo.templates.blue]
background = "#0011DD"
transition = "zoom"
+++
## 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.
---
{{< slide template="blue" >}}
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:
```toml
[reveal_hugo.templates.blue]
background = "#0011DD"
transition = "zoom"
```
---
Then add it to any slide using the slide shortcode:
```
{{</* slide template="blue" */>}}
```