mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-05-18 21:03:29 +02:00
Add a shortcode for adding vertical sections
This commit is contained in:
@@ -173,6 +173,22 @@ Fragments are a Reveal.js concept that lets you introduce content into each slid
|
||||
{{% 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
|
||||
|
||||
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>
|
||||
Reference in New Issue
Block a user