themen-hugo-35c3-reveal/static/reveal-hugo/index.js

12 lines
578 B
JavaScript
Raw Normal View History

2018-04-30 14:58:55 -05:00
// pattern inspired by https://github.com/RealOrangeOne/hugo-theme-revealjs
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);
2018-04-30 14:58:55 -05:00
// See all options - https://github.com/hakimel/reveal.js#configuration
Reveal.initialize(Object.assign(
revealHugoDefaults,
revealHugoSiteParams,
revealHugoPageParams,
revealHugoDependencies));