Add a shortcode for adding vertical sections

This commit is contained in:
dzello 2018-04-30 01:01:10 -07:00
parent e44093d0a3
commit 54ed796610
3 changed files with 40 additions and 0 deletions

View file

@ -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`:

View file

@ -0,0 +1,23 @@
+++
title = "Reveal.js presentation sections example"
outputs = ["Reveal"]
reveal_theme = "moon"
+++
Test
---
{{% section %}}
Two
---
Three
{{% /section %}}
---
Four

View file

@ -0,0 +1 @@
<section>{{ .Inner }}</section>