extends /demo/html/_templates/layouts/_reveal.pug
block slides
include slides/_slides
block append scripts
script(src="plugin/highlight/highlight.js")
script(src="plugin/markdown/markdown.js")
script(src=`plugin/${pluginName}/${pluginName}.js`)
script.
// Get the deck
const deck = document.querySelector(".reveal");
// Define the plugins (Using strings)
let plugins = ["RevealHighlight", "!{plugin}"];
// Check the plugins
const pluginCheck = (plugs) => plugs.reduce((a, p) => typeof window[p] === "function" ? (a.push(window[p]), a) : (console.warn(`Plugin "${p}" does not exist.`), a), []);
let revealdeck = new Reveal(deck);
revealdeck.initialize({
width: 960,
height: 700,
history: true,
overviews: false,
center: true,
margin: 0.15,
controlsTutorial: false,
plugins: pluginCheck(plugins),
multimodal: {
//debug: true
}
});