Presentation updates

This commit is contained in:
dzello 2018-04-30 11:13:10 -07:00
parent dcbeba670d
commit 072230bfbf
4 changed files with 45 additions and 23 deletions

View file

@ -11,8 +11,9 @@ weight = 40
### Resources
- [Reveal.js](https://revealjs.org)
- [Hugo output formats](https://gohugo.io/templates/output-formats/)
- [Reveal.js](https://revealjs.com/)
- [Hugo docs](https://gohugo.io/)
- [Hugo output format docs](https://gohugo.io/templates/output-formats/)
---

View file

@ -15,3 +15,26 @@ weight = 10
- Markdown files are parsed into multiple slides
- Built-in shortcodes expose Reveal.js functionality
- Customize Reveal.js parameters including the theme
---
## Multiple slides per markdown file
Separate slides with `---`
```markdown
# Slide 1
Body 1.
---
# Slide 2
Body 2.
```
---
I'm a **new** slide from the **same** markdown file.

View file

@ -52,6 +52,6 @@ Keep scrolling down.
## That's it!
Use the right arrow or swipe right.
Use the right arrow or swipe right to continue.
{{% /section %}}

View file

@ -6,29 +6,19 @@ weight = 20
---
## Multiple slides per markdown file
## Prerequisite
Separate slides with `---`
```markdown
# Slide 1
Body 1.
---
# Slide 2
Body 2.
Add this to your `config.toml`:
```toml
[outputFormats.Reveal]
baseName = "index"
mediaType = "text/html"
isHTML = true
```
---
I'm a **new** slide from the **same** markdown file.
---
## Make a presentation for `/`
In `content/_index.md`:
@ -51,10 +41,14 @@ Put more slides in `content/home/*.md`
```markdown
+++
weight = 20
weight = 10
+++
# Slide 3
---
# Slide 4
```
Use `weight` to specify the order
@ -62,7 +56,7 @@ Use `weight` to specify the order
---
## Make a presentation for a Hugo section
## Make a presentation for any Hugo section
In `content/{section}/_index.md`:
@ -85,10 +79,14 @@ Put more slides in `content/{section}/*.md`
```markdown
+++
weight = 20
weight = 10
+++
# Slide 3
---
# Slide 4
```
Use `weight` to specify the order