mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-07 14:03:33 +02:00
Add section shortcode to example presentation
This commit is contained in:
@@ -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.
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user