Add a shortcode for adding vertical sections
This commit is contained in:
parent
e44093d0a3
commit
54ed796610
3 changed files with 40 additions and 0 deletions
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`:
|
||||||
|
|
23
exampleSite/content/sections/_index.md
Normal file
23
exampleSite/content/sections/_index.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
+++
|
||||||
|
title = "Reveal.js presentation sections example"
|
||||||
|
outputs = ["Reveal"]
|
||||||
|
reveal_theme = "moon"
|
||||||
|
+++
|
||||||
|
|
||||||
|
Test
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
{{% section %}}
|
||||||
|
|
||||||
|
Two
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Three
|
||||||
|
|
||||||
|
{{% /section %}}
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Four
|
1
layouts/shortcodes/section.html
Normal file
1
layouts/shortcodes/section.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<section>{{ .Inner }}</section>
|
Loading…
Reference in a new issue