Welcome to mirror list, hosted at ThFree Co, Russian Federation.

home.toml « data « exampleSite - github.com/dzello/reveal-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 599fd622727e7802e61e1f4279952d37b0e1f2b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Note: it seems that under goldmark, markdown in data templates has issues.
#       In particular "---" is converted to <hr> even inside code fences!

reusable = '''

## Reusable slides

Store markdown in a [data template](https://gohugo.io/templates/data-templates/) and reuse it in multiple sections or presentations.

<br>
<small>
navigate down to learn more
</small>
<br>
<a href="#" class="navigate-down">🔽</a>

---

Add a `example` key to data/home.toml:

```toml
example = "I'm a slide"
```
<br>

Set the `content` attribute to "home.example":

```markdown
{{< slide content="home.example" >}}
```

---

💡 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.

---

💡 Adding a new file in `data` folder requires to restart `hugo`

💡 Symbolic links are not allowed in `data` folder

'''