Add section shortcode to example presentation

This commit is contained in:
dzello 2018-04-30 01:09:44 -07:00
parent 54ed796610
commit 9159d3c598
5 changed files with 40 additions and 38 deletions

View file

@ -2,14 +2,10 @@
weight = 20 weight = 20
+++ +++
# reveal-hugo
Content for the root presentation lives in `content/_index.md` and `content/home`. Content for the root presentation lives in `content/_index.md` and `content/home`.
--- ---
# reveal-hugo
Content files are ordered by `weight` when added to the presentation. Content files are ordered by `weight` when added to the presentation.
```toml ```toml
@ -20,9 +16,7 @@ weight = 20
--- ---
# reveal-hugo Create a presentation for any section of your site by adding this to its `_index.md`:
Create a presentation for any section by adding this to its `_index.md`:
```toml ```toml
outputs = ["Reveal"] outputs = ["Reveal"]
@ -30,9 +24,7 @@ outputs = ["Reveal"]
--- ---
# reveal-hugo **The `fragment` shortcode** makes content appear incrementally.
Use the `fragment` shortcode to make content appear incrementally.
``` ```

View file

@ -12,4 +12,6 @@ If you want your markdown files to contain more than one slide each...
--- ---
### Learn more
[https://github.com/dzello/reveal-hugo](https://github.com/dzello/reveal-hugo) [https://github.com/dzello/reveal-hugo](https://github.com/dzello/reveal-hugo)

View file

@ -2,9 +2,7 @@
weight = 10 weight = 10
+++ +++
# reveal-hugo ### Multiple slides per markdown file.
Multiple slides per markdown file.
Separate slides with `---` Separate slides with `---`
@ -23,8 +21,6 @@ Body 2.
--- ---
# reveal-hugo
Hello! Hello!
I'm a new slide from the same markdown file. I'm a new slide from the same markdown file.

View file

@ -0,0 +1,35 @@
+++
weight = 25
+++
{{% section %}}
**The `section` shortcode** creates a batch of vertical slides.
Scroll down.
---
This is the code.
```markdown
{{%/* section */%}}
## Section slide 1
---
## Section slide 2
{{%/* /section */%}}
```
Keep scrolling down.
---
## End of section
Continue to the right.
{{% /section %}}

View file

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