Peter Kurfer
4b984de827
- enables embedding of HTML in Markdown - requires a single file handler that delivers the markdown file content - eased template handling - added more reveal.js config option that should configurable in upcoming version
59 lines
1.7 KiB
Cheetah
59 lines
1.7 KiB
Cheetah
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<title>goveal</title>
|
|
|
|
<link rel="stylesheet" href="/reveal/css/reveal.css">
|
|
<link rel="stylesheet" href="/reveal/css/theme/{{ .Reveal.Theme }}.css" id="theme">
|
|
|
|
<link rel="stylesheet" href="/reveal/lib/css/{{ .Reveal.CodeTheme }}.css">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="reveal">
|
|
<div class="slides">
|
|
<section data-markdown="/markdown/content.md"
|
|
data-separator="^\n{{ .Reveal.HorizontalSeparator }}\n"
|
|
data-separator-vertical="^\n{{ .Reveal.VerticalSeparator }}\n"
|
|
data-separator-notes="^Note:"
|
|
data-charset="iso-8859-15">
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/reveal/js/reveal.js"></script>
|
|
|
|
<script>
|
|
|
|
Reveal.initialize({
|
|
controls: true,
|
|
progress: true,
|
|
history: true,
|
|
center: true,
|
|
slideNumber: true,
|
|
hash: true,
|
|
transition: 'slide', // none/fade/slide/convex/concave/zoom
|
|
markdown:{
|
|
smartypants: true,
|
|
smartLists: true,
|
|
},
|
|
|
|
// Optional libraries used to extend on reveal.js
|
|
dependencies: [
|
|
{ src: '/reveal/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
|
{ src: '/reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
|
{ src: '/reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
|
{ src: '/reveal/plugin/notes/notes.js' }
|
|
]
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|