4e0d34413b
Now any Hugo section can be configured to generate a presentation without altering its type, and the theme is more easily copied into existing sites without conflicting with any preexisting layouts.
46 lines
732 B
Markdown
46 lines
732 B
Markdown
+++
|
|
weight = 20
|
|
+++
|
|
|
|
# reveal-hugo
|
|
|
|
Content for the root presentation lives in `content/_index.md` and `content/home`.
|
|
|
|
---
|
|
|
|
# reveal-hugo
|
|
|
|
Content files are ordered by `weight` when added to the presentation.
|
|
|
|
```toml
|
|
+++
|
|
weight = 20
|
|
+++
|
|
```
|
|
|
|
---
|
|
|
|
# reveal-hugo
|
|
|
|
Create a presentation for any section by adding this to its `_index.md`:
|
|
|
|
```toml
|
|
outputs = ["Reveal"]
|
|
```
|
|
|
|
---
|
|
|
|
# reveal-hugo
|
|
|
|
Use the `fragment` shortcode to make content appear incrementally.
|
|
|
|
|
|
```
|
|
{{%/* fragment */%}} One {{%/* /fragment */%}}
|
|
{{%/* fragment */%}} Two {{%/* /fragment */%}}
|
|
{{%/* fragment */%}} Three {{%/* /fragment */%}}
|
|
```
|
|
|
|
{{% fragment %}} One {{% /fragment %}}
|
|
{{% fragment %}} Two {{% /fragment %}}
|
|
{{% fragment %}} Three {{% /fragment %}}
|