themen-hugo-35c3-reveal/exampleSite/content/home/usage.md

93 lines
765 B
Markdown
Raw Normal View History

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-04-30 13:13:10 -05:00
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
```
---
## Make a presentation for `/`
In `content/_index.md`:
```markdown
+++
outputs = ["Reveal"]
+++
# Slide 1
---
# Slide 2
```
---
Put more slides in `content/home/*.md`
```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
```
Use `weight` to specify the order
---
2018-04-30 13:13:10 -05:00
## Make a presentation for any Hugo section
2018-04-30 13:04:48 -05:00
In `content/{section}/_index.md`:
```markdown
+++
outputs = ["Reveal"]
+++
# Slide 1
---
# Slide 2
```
---
Put more slides in `content/{section}/*.md`
```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
```
Use `weight` to specify the order