63 lines
2.1 KiB
Django/Jinja
63 lines
2.1 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{{ title }}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="../_assets/reveal.js/css/reveal.css">
|
|
<link rel="stylesheet" href="../_assets/reveal.js/css/print/pdf.css" media="print">
|
|
<link rel="stylesheet" href="{{ theme }}">
|
|
<link rel="stylesheet" href="../_assets/highlight.js/solarized-dark.css">
|
|
<script>
|
|
var link = document.createElement('link');
|
|
link.rel = 'stylesheet';
|
|
link.type = 'text/css';
|
|
link.href = window.location.search.match(/print-pdf/gi) ? '../_assets/reveal.js/css/print/pdf.css' : '../_assets/reveal.js/css/print/paper.css';
|
|
document.getElementsByTagName('head')[0].appendChild(link);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="reveal">
|
|
<div class="slides">
|
|
{{ content }}
|
|
</div>
|
|
</div>
|
|
<script src="../_assets/reveal.js/lib/js/head.min.js"></script>
|
|
<script src="../_assets/reveal.js/js/reveal.js"></script>
|
|
<script>
|
|
Reveal.initialize({
|
|
controls: {{ controls | lower }},
|
|
progress: {{ progress | lower }},
|
|
history: {{ history | lower }},
|
|
center: {{ center | lower }},
|
|
controlsTutorial: false,
|
|
|
|
showNotes: {{ show_notes | lower }},
|
|
|
|
width: {{ width }},
|
|
height: {{ height }},
|
|
|
|
transition: '{{ transition }}',
|
|
|
|
math: {
|
|
mathjax: '../_assets/MathJax/unpacked/MathJax.js',
|
|
config: 'TeX-AMS_HTML-full'
|
|
},
|
|
|
|
dependencies: [
|
|
// Syntax highlight for <code> elements
|
|
{ src: '../_assets/reveal.js/plugin/highlight/highlight.js', async: true, callback: () => hljs.initHighlightingOnLoad() },
|
|
// Zoom in and out with Alt+click
|
|
{ src: '../_assets/reveal.js/plugin/zoom-js/zoom.js', async: true },
|
|
// Speaker notes
|
|
{ src: '../_assets/reveal.js/plugin/notes/notes.js', async: true },
|
|
{% if mathjax -%}
|
|
// LaTeX rendering
|
|
{ src: '../_assets/reveal.js/plugin/math/math.js', async: true }
|
|
{%- endif %}
|
|
]
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|