2018-07-21 10:55:03 +02:00
|
|
|
example = '''
|
|
|
|
|
|
|
|
# Reusable slides
|
|
|
|
|
|
|
|
Store markdown in a [data template](https://gohugo.io/templates/data-templates/) and reuse it in multiple sections or presentations.
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<small>
|
|
|
|
scroll down to learn more
|
|
|
|
</small>
|
|
|
|
<br>
|
|
|
|
🔽
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Add an `example` key to data/home.toml:
|
|
|
|
|
|
|
|
```
|
|
|
|
example = "I'm a slide"
|
|
|
|
```
|
|
|
|
<br>
|
|
|
|
|
|
|
|
Set the `content` attribute to "home.example":
|
|
|
|
|
|
|
|
```
|
2018-07-22 11:50:50 +02:00
|
|
|
{{% slide content="home.example" /%}}
|
2018-07-21 10:55:03 +02:00
|
|
|
```
|
|
|
|
|
2018-07-22 11:50:50 +02:00
|
|
|
<br>
|
|
|
|
<small>
|
|
|
|
💡 Make sure to use a closing or self-closing shortcode.
|
|
|
|
</small>
|
|
|
|
|
2018-07-21 10:55:03 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
💡 Each data template entry can contain one or more slides, separated by `---` with newlines.
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
💡 All other slide shortcode attributes (background, transition, etc.) can be used and will be applied to each slide in the data template entry.
|
|
|
|
|
|
|
|
'''
|