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 ### Resources
- [Reveal.js](https://revealjs.org) - [Reveal.js](https://revealjs.com/)
- [Hugo output formats](https://gohugo.io/templates/output-formats/) - [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 - Markdown files are parsed into multiple slides
- Built-in shortcodes expose Reveal.js functionality - Built-in shortcodes expose Reveal.js functionality
- Customize Reveal.js parameters including the theme - 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! ## That's it!
Use the right arrow or swipe right. Use the right arrow or swipe right to continue.
{{% /section %}} {{% /section %}}

View File

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