2018-04-30 13:04:48 -05:00
|
|
|
+++
|
|
|
|
weight = 20
|
|
|
|
+++
|
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-04-30 13:13:10 -05:00
|
|
|
## Prerequisite
|
2018-04-30 13:04:48 -05:00
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
First, add this to your `config.toml`:
|
2018-04-30 13:04:48 -05:00
|
|
|
|
2018-04-30 13:13:10 -05:00
|
|
|
```toml
|
|
|
|
[outputFormats.Reveal]
|
|
|
|
baseName = "index"
|
|
|
|
mediaType = "text/html"
|
|
|
|
isHTML = true
|
2018-04-30 13:04:48 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
### Presentation at site root
|
2018-05-01 02:26:56 -05:00
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
Create `content/_index.md`:
|
2018-05-01 02:26:56 -05:00
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
```markdown
|
|
|
|
+++
|
|
|
|
outputs = ["Reveal"]
|
|
|
|
+++
|
2018-05-01 02:26:56 -05:00
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
# Slide 1
|
|
|
|
|
|
|
|
Hello world!
|
|
|
|
```
|
2018-05-01 02:26:56 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
### Add slides in same file
|
2018-05-01 03:46:00 -05:00
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
Separate them by `---`:
|
2018-05-01 03:46:00 -05:00
|
|
|
|
|
|
|
```
|
2018-07-19 09:49:24 -05:00
|
|
|
# Slide 1
|
|
|
|
|
|
|
|
Hello world!
|
|
|
|
|
2018-05-01 03:46:00 -05:00
|
|
|
---
|
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
# Slide 2
|
2018-05-01 02:26:56 -05:00
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
Hello program!
|
2018-05-01 02:26:56 -05:00
|
|
|
```
|
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
---
|
|
|
|
|
|
|
|
### Add slides with other files
|
|
|
|
|
|
|
|
Add slides to `content/home/*.md`
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
+++
|
|
|
|
weight = 10
|
|
|
|
+++
|
|
|
|
|
|
|
|
# Slide 3
|
2018-05-01 02:26:56 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
# Slide 4
|
|
|
|
```
|
|
|
|
|
|
|
|
<small>💡 Tip: Use `weight` to specify the order that files should be added.</small>
|
2018-05-15 21:15:36 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
### Presentation at '/{section}/'
|
2018-04-30 13:04:48 -05:00
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
In `content/{section}/_index.md`:
|
2018-04-30 13:04:48 -05:00
|
|
|
|
|
|
|
```markdown
|
|
|
|
+++
|
|
|
|
outputs = ["Reveal"]
|
|
|
|
+++
|
|
|
|
|
|
|
|
# Slide 1
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
# Slide 2
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
Add slides from other files in `content/{section}/*.md`
|
2018-04-30 13:04:48 -05:00
|
|
|
|
|
|
|
```markdown
|
|
|
|
+++
|
2018-04-30 13:13:10 -05:00
|
|
|
weight = 10
|
2018-04-30 13:04:48 -05:00
|
|
|
+++
|
|
|
|
|
|
|
|
# Slide 3
|
2018-04-30 13:13:10 -05:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
# Slide 4
|
2018-04-30 13:04:48 -05:00
|
|
|
```
|
|
|
|
|
2018-07-19 09:49:24 -05:00
|
|
|
<small>💡 Tip: Use `weight` to specify the order that files should be added.</small>
|
|
|
|
|