mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-06 21:50:48 +02:00
Include a Reveal.js distribution in static and make it default
CDN can still be used via a configuration parameter. This way, development and presentation can be done locally with no network dependency.
This commit is contained in:
@@ -293,8 +293,8 @@ Customize the Reveal.js presentation by setting these values in `config.toml` or
|
||||
- `reveal_hugo.theme`: The Reveal.js theme used, defaults to "black"
|
||||
- `reveal_hugo.custom_theme`: The path to a locally hosted Reveal.js theme
|
||||
- `reveal_hugo.highlight_theme`: The [highlight.js](https://highlightjs.org/) theme used, defaults to "default"
|
||||
- `reveal_hugo.reveal_cdn`: The location to load Reveal.js files from, defaults to `https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0`
|
||||
- `reveal_hugo.highlight_cdn`: The location to load highlight.js files from, defaults to `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0`
|
||||
- `reveal_hugo.reveal_cdn`: The location to load Reveal.js files from, defaults to the `reveal-js` folder in the static directory to support offline development. To load from a CDN instead, set this value to `https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0` or whatever CDN you prefer.
|
||||
- `reveal_hugo.highlight_cdn`: The location to load highlight.js files from, defaults to `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0`. For local development, you can change this to point to a local file.
|
||||
|
||||
This is how parameters will look in your `config.toml`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user