Mention to use closing or self-closing tags for slide shortcode
This commit is contained in:
parent
52eec0fd6a
commit
b9d502335b
|
@ -16,6 +16,11 @@ Reveal.js has its own [markdown processor](https://github.com/hakimel/reveal.js#
|
||||||
{{</* /markdown */>}}
|
{{</* /markdown */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<small>
|
||||||
|
💡 Make sure to use the `{{</* */>}}` shortcode syntax to avoid rendering by Hugo.
|
||||||
|
</small>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- .slide: data-background="#FF4081" -->
|
<!-- .slide: data-background="#FF4081" -->
|
||||||
|
|
|
@ -44,6 +44,6 @@ Customize individual slide parameters like background color and transition.
|
||||||
|
|
||||||
{{% section %}}
|
{{% section %}}
|
||||||
|
|
||||||
{{< slide content="home.example" >}}
|
{{% slide content="home.example" /%}}
|
||||||
|
|
||||||
{{% /section %}}
|
{{% /section %}}
|
||||||
|
|
|
@ -23,9 +23,14 @@ example = "I'm a slide"
|
||||||
Set the `content` attribute to "home.example":
|
Set the `content` attribute to "home.example":
|
||||||
|
|
||||||
```
|
```
|
||||||
{{< slide content="home.example" >}}
|
{{% slide content="home.example" /%}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<small>
|
||||||
|
💡 Make sure to use a closing or self-closing shortcode.
|
||||||
|
</small>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
💡 Each data template entry can contain one or more slides, separated by `---` with newlines.
|
💡 Each data template entry can contain one or more slides, separated by `---` with newlines.
|
||||||
|
|
Loading…
Reference in New Issue