Store Reveal params in snakecase and convert

This commit is contained in:
dzello
2018-05-01 00:26:56 -07:00
parent e16f5dc104
commit 7024169277
4 changed files with 57 additions and 6 deletions
+2
View File
@@ -1,6 +1,8 @@
+++
title = "reveal-hugo features and usage"
outputs = ["Reveal"]
[reveal_hugo]
slide_number = true
+++
# reveal-hugo
+29
View File
@@ -19,6 +19,35 @@ isHTML = true
---
## Configure themes
Optional. In `config.toml` or front matter.
```toml
[params.reveal_hugo]
theme = "moon"
highlight_theme = "zenburn"
```
[Reveal themes](https://github.com/hakimel/reveal.js/#theming) ·
[highlight.js themes](https://highlightjs.org/static/demo/)
---
## Configure Reveal.js
Set **snakecase** versions of Reveal.js params, which will be passed to `Reveal.initialize`.
```toml
[params.reveal_hugo]
slide_number = true
transition_speed = 'fast'
```
[Reveal config params](https://github.com/hakimel/reveal.js/#configuration)
---
## Presentation for `/`
In `content/_index.md`: