diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a5910a0..3c6f1c0 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,9 +8,6 @@ themesDir = "../" [author] name = "Josh Dzielak" -[params] -description = "Includes a handy markdown-based syntax and shortcodes to help you get presentations done fast" - [params.reveal_hugo] history = true diff --git a/layouts/_default/baseof.reveal.html b/layouts/_default/baseof.reveal.html index 6feac93..9db28a3 100644 --- a/layouts/_default/baseof.reveal.html +++ b/layouts/_default/baseof.reveal.html @@ -1,26 +1,26 @@ -{{- $reveal_cdn := or .Page.Params.reveal_hugo.reveal_cdn .Site.Params.reveal_hugo.reveal_cdn "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0" -}} -{{- $highlight_cdn := or .Page.Params.reveal_hugo.highlight_cdn .Site.Params.reveal_hugo.highlight_cdn "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0" -}} +{{- $reveal_cdn := $.Param "reveal_hugo.reveal_cdn" | default "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0" -}} +{{- $highlight_cdn := $.Param "reveal_hugo.highlight_cdn" | default "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0" -}}