-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html5
54 lines (49 loc) · 1.52 KB
/
template.html5
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
<!DOCTYPE html>
<html$if(lang)$ lang="$lang$" $endif$$if(dir)$ dir="$dir$" $endif$>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> $for(author-meta)$
<meta name="author" content="$author-meta$"> $endfor$ $if(date-meta)$
<meta name="dcterms.date" content="$date-meta$"> $endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<style>
body {
/*margin: auto;
padding-right: 1em;
padding-left: 1em;
max-width: 44em;*/
color: black;
font-family: 'Open Sans', sans-serif;
}
h1,
h2,
h3,
h4,
h5 {
font-family: verdana;
font-weight: bold;
border-bottom: 1px dotted black;
color: #17277f;
}
</style>
$for(header-includes)$ $header-includes$ $endfor$
</head>
<body>
$for(include-before)$ $include-before$ $endfor$ $if(title)$
<header>
<h1 class="title">$title$</h1> $if(subtitle)$
<p class="subtitle">$subtitle$</p>
$endif$
</header>
$endif$ $body$ $for(include-after)$ $include-after$ $endfor$
</body>
<script>
var list = document.getElementsByTagName("h2");
for (var i = 0; i < list.length; i++) {
var heading = "§ " + (i + 1) + ": " + list[i].innerHTML;
list[i].innerHTML = heading;
}
</script>
</html>