Add section shortcode to example presentation
This commit is contained in:
parent
54ed796610
commit
9159d3c598
5 changed files with 40 additions and 38 deletions
|
@ -2,14 +2,10 @@
|
|||
weight = 20
|
||||
+++
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
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.
|
||||
|
||||
```toml
|
||||
|
@ -20,9 +16,7 @@ weight = 20
|
|||
|
||||
---
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
Create a presentation for any section by adding this to its `_index.md`:
|
||||
Create a presentation for any section of your site by adding this to its `_index.md`:
|
||||
|
||||
```toml
|
||||
outputs = ["Reveal"]
|
||||
|
@ -30,9 +24,7 @@ outputs = ["Reveal"]
|
|||
|
||||
---
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
Use the `fragment` shortcode to make content appear incrementally.
|
||||
**The `fragment` shortcode** makes content appear incrementally.
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
weight = 10
|
||||
+++
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
Multiple slides per markdown file.
|
||||
### Multiple slides per markdown file.
|
||||
|
||||
Separate slides with `---`
|
||||
|
||||
|
@ -23,8 +21,6 @@ Body 2.
|
|||
|
||||
---
|
||||
|
||||
# reveal-hugo
|
||||
|
||||
Hello!
|
||||
|
||||
I'm a new slide from the same markdown file.
|
||||
|
|
35
exampleSite/content/home/section.md
Normal file
35
exampleSite/content/home/section.md
Normal 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 %}}
|
|
@ -1,23 +0,0 @@
|
|||
+++
|
||||
title = "Reveal.js presentation sections example"
|
||||
outputs = ["Reveal"]
|
||||
reveal_theme = "moon"
|
||||
+++
|
||||
|
||||
Test
|
||||
|
||||
---
|
||||
|
||||
{{% section %}}
|
||||
|
||||
Two
|
||||
|
||||
---
|
||||
|
||||
Three
|
||||
|
||||
{{% /section %}}
|
||||
|
||||
---
|
||||
|
||||
Four
|
Loading…
Reference in a new issue