-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.html
35 lines (32 loc) · 1.01 KB
/
template.html
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
<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link href="css/theme.css" rel="stylesheet" type="text/css" media="all">
</head>
<body>
<textarea id="source">
{{ content }}
</textarea>
<script src="remark-latest.min.js" type="text/javascript">
</script>
<script type="text/javascript">
// macro for image scaling
// see also: https://github.com/gnab/remark/issues/72#issuecomment-419693263_
remark.macros.img = function (altText, width) {
var url = this;
return '<img alt="' + altText + '" src="' + url + '" style="width: ' + width + '" />';
};
// starting slideshow
var slideshow = remark.create({
// override factor from 4:3 to 16:9
ratio: '{{ ratio }}',
// override footer
slideNumberFormat: '{{ slideNumberFormat }}',
// enable line highlightning
highlightLines: true
});
</script>
</body>
</html>