Presentation updates
This commit is contained in:
parent
dcbeba670d
commit
072230bfbf
|
@ -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/)
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 %}}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue