110 lines
1.0 KiB
Markdown
110 lines
1.0 KiB
Markdown
+++
|
|
weight = 20
|
|
+++
|
|
|
|
# Usage
|
|
|
|
---
|
|
|
|
## Prerequisite
|
|
|
|
First, add this to your `config.toml`:
|
|
|
|
```toml
|
|
[outputFormats.Reveal]
|
|
baseName = "index"
|
|
mediaType = "text/html"
|
|
isHTML = true
|
|
```
|
|
|
|
---
|
|
|
|
### Presentation at site root
|
|
|
|
Create `content/_index.md`:
|
|
|
|
```markdown
|
|
+++
|
|
outputs = ["Reveal"]
|
|
+++
|
|
|
|
# Slide 1
|
|
|
|
Hello world!
|
|
```
|
|
|
|
---
|
|
|
|
### Add slides in same file
|
|
|
|
Separate them by `---`:
|
|
|
|
```
|
|
# Slide 1
|
|
|
|
Hello world!
|
|
|
|
---
|
|
|
|
# Slide 2
|
|
|
|
Hello program!
|
|
```
|
|
|
|
---
|
|
|
|
### Add slides with other files
|
|
|
|
Add slides to `content/home/*.md`
|
|
|
|
```markdown
|
|
+++
|
|
weight = 10
|
|
+++
|
|
|
|
# Slide 3
|
|
|
|
---
|
|
|
|
# Slide 4
|
|
```
|
|
|
|
<small>💡 Tip: Use `weight` to specify the order that files should be added.</small>
|
|
|
|
---
|
|
|
|
### Presentation at '/{section}/'
|
|
|
|
In `content/{section}/_index.md`:
|
|
|
|
```markdown
|
|
+++
|
|
outputs = ["Reveal"]
|
|
+++
|
|
|
|
# Slide 1
|
|
|
|
---
|
|
|
|
# Slide 2
|
|
```
|
|
|
|
---
|
|
|
|
Add slides from other files in `content/{section}/*.md`
|
|
|
|
```markdown
|
|
+++
|
|
weight = 10
|
|
+++
|
|
|
|
# Slide 3
|
|
|
|
---
|
|
|
|
# Slide 4
|
|
```
|
|
|
|
<small>💡 Tip: Use `weight` to specify the order that files should be added.</small>
|
|
|