diff --git a/layouts/_default/baseof.reveal.html b/layouts/_default/baseof.reveal.html index 368bcea..1e3868b 100644 --- a/layouts/_default/baseof.reveal.html +++ b/layouts/_default/baseof.reveal.html @@ -12,15 +12,15 @@ - {{ $theme := or .Page.Params.reveal_hugo.theme .Site.Params.reveal_hugo.theme .Site.Data.reveal_hugo.defaults.theme "black" }} - {{ $custom_theme := or .Page.Params.reveal_hugo.custom_theme .Site.Params.reveal_hugo.custom_theme }} - {{ if $custom_theme }} + {{- $theme := or .Page.Params.reveal_hugo.theme .Site.Params.reveal_hugo.theme .Site.Data.reveal_hugo.defaults.theme "black" -}} + {{- $custom_theme := or .Page.Params.reveal_hugo.custom_theme .Site.Params.reveal_hugo.custom_theme -}} + {{- if $custom_theme -}} - {{ else }} + {{ else -}} - {{ end }} + {{- end -}} - {{ $highlight_theme := or .Page.Params.reveal_hugo.highlight_theme .Site.Params.reveal_hugo.highlight_theme .Site.Data.reveal_hugo.defaults.highlight_theme "default" }} + {{- $highlight_theme := or .Page.Params.reveal_hugo.highlight_theme .Site.Params.reveal_hugo.highlight_theme .Site.Data.reveal_hugo.defaults.highlight_theme "default" -}} - {{ partial "reveal-hugo/head" . }} + {{- partial "reveal-hugo/head" . -}}
- {{ block "main" . }}{{ end }} + {{- block "main" . -}}{{- end -}} @@ -73,7 +73,6 @@ var revealHugoPageParams = JSON.parse(document.getElementById('reveal-hugo-page-params').innerHTML); var revealHugoSiteParams = JSON.parse(document.getElementById('reveal-hugo-site-params').innerHTML); var revealHugoDefaults = JSON.parse(document.getElementById('reveal-hugo-defaults').innerHTML); - // See all options - https://github.com/hakimel/reveal.js#configuration var options = Object.assign({}, camelize(revealHugoDefaults), @@ -81,8 +80,8 @@ camelize(revealHugoPageParams), revealHugoDependencies); Reveal.initialize(options); - + {{ partial "reveal-hugo/body" . }}