generated from cncf/hugo-netlify-starter
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathslides.html
More file actions
73 lines (65 loc) · 2.32 KB
/
slides.html
File metadata and controls
73 lines (65 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>{{ title | escape }}</title>
<link rel="stylesheet" href="{{ '/reveal.js/dist/reset.css' | url }}">
<link rel="stylesheet" href="{{ '/reveal.js/dist/reveal.css' | url }}">
<link rel="stylesheet" href="{{ '/reveal.js/dist/theme/servo.css' | url }}">
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="{{ '/reveal.js/plugin/highlight/monokai.css' | url }}">
<style>
#printlink {
position: absolute;
top: 10px;
right: 10px;
width: 20px;
height: 20px;
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
{% capture pageurl %}/{{ page.inputPath }}{% endcapture %}
<section data-markdown="{{ pageurl | url }}"
data-separator="-----"
data-separator-vertical="----"
data-separator-notes="^Note:"
data-charset="utf-8">
</section>
</div>
</div>
{% capture printurl %}{{ page.url }}?print-pdf{% endcapture %}
<a id="printlink" href="{{ printurl | url }}">
<img src="{{ '/img/print-icon.svg' | url }}" alt="Print" title="Print to PDF" />
</a>
<script>
document.addEventListener("fullscreenchange", () => {
if (document.fullscreenElement)
printlink.style.display = "none";
else
printlink.style.display = "block";
});
</script>
<script src="{{ '/reveal.js/dist/reveal.js' | url }}"></script>
<script src="{{ '/reveal.js/plugin/notes/notes.js' | url }}"></script>
<script src="{{ '/reveal.js/plugin/markdown/markdown.js' | url }}"></script>
<script src="{{ '/reveal.js/plugin/highlight/highlight.js' | url }}"></script>
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
hash: true,
// Learn about plugins: https://revealjs.com/plugins/
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ],
// https://marked.js.org/using_advanced#options
markdown: {
smartypants: true
}
});
</script>
</body>
</html>