Add a shortcode for adding vertical sections
This commit is contained in:
parent
e44093d0a3
commit
54ed796610
16
README.md
16
README.md
|
@ -173,6 +173,22 @@ Fragments are a Reveal.js concept that lets you introduce content into each slid
|
||||||
{{% fragment %}} Three {{% /fragment %}}
|
{{% fragment %}} Three {{% /fragment %}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Sections
|
||||||
|
|
||||||
|
Add sections of vertical slides to your presentation by surrounding the relevant slides with the `section` shortcode.
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
{{% section %}}
|
||||||
|
|
||||||
|
# Section slide 1
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Section slide 2
|
||||||
|
|
||||||
|
{{% /section %}}
|
||||||
|
```
|
||||||
|
|
||||||
### Configuration params
|
### Configuration params
|
||||||
|
|
||||||
These settings go in `config.toml`:
|
These settings go in `config.toml`:
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
+++
|
||||||
|
title = "Reveal.js presentation sections example"
|
||||||
|
outputs = ["Reveal"]
|
||||||
|
reveal_theme = "moon"
|
||||||
|
+++
|
||||||
|
|
||||||
|
Test
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
{{% section %}}
|
||||||
|
|
||||||
|
Two
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Three
|
||||||
|
|
||||||
|
{{% /section %}}
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Four
|
|
@ -0,0 +1 @@
|
||||||
|
<section>{{ .Inner }}</section>
|
Loading…
Reference in New Issue