2018-08-03 09:07:12 -05:00
|
|
|
reusable = '''
|
2018-07-21 03:55:03 -05:00
|
|
|
|
2018-08-13 18:00:03 -05:00
|
|
|
## Reusable slides
|
2018-07-21 03:55:03 -05:00
|
|
|
|
|
|
|
Store markdown in a [data template](https://gohugo.io/templates/data-templates/) and reuse it in multiple sections or presentations.
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<small>
|
2018-07-22 12:04:19 -05:00
|
|
|
navigate down to learn more
|
2018-07-21 03:55:03 -05:00
|
|
|
</small>
|
|
|
|
<br>
|
2018-07-22 12:13:39 -05:00
|
|
|
<a href="#" class="navigate-down">🔽</a>
|
2018-07-21 03:55:03 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-08-03 09:07:12 -05:00
|
|
|
Add a `example` key to data/home.toml:
|
2018-07-21 03:55:03 -05:00
|
|
|
|
2018-08-03 09:07:12 -05:00
|
|
|
```toml
|
2018-07-21 03:55:03 -05:00
|
|
|
example = "I'm a slide"
|
|
|
|
```
|
|
|
|
<br>
|
|
|
|
|
|
|
|
Set the `content` attribute to "home.example":
|
|
|
|
|
2018-08-03 09:07:12 -05:00
|
|
|
```markdown
|
2018-08-13 16:57:09 -05:00
|
|
|
---
|
|
|
|
|
2018-08-03 09:07:12 -05:00
|
|
|
{{< slide content="home.example" >}}
|
2018-07-21 03:55:03 -05:00
|
|
|
|
2018-08-13 16:57:09 -05:00
|
|
|
---
|
|
|
|
```
|
2018-07-22 04:50:50 -05:00
|
|
|
|
2018-07-21 03:55:03 -05: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.
|
|
|
|
|
|
|
|
'''
|