-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html5
96 lines (91 loc) · 2.33 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc-markdown-css-theme" />
<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$
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
$endif$
$if(description-meta)$
<meta name="description" content="$description-meta$" />
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
$if(math)$
$math$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
</head>
<body>
$for(include-before)$
$include-before$
$endfor$
<header>
<div class="wordart rainbow"><span class="text">AZARKIN.DEV</span></div>
<h1 class="title">$title$</h1>
<blockquote class="metadata">
$if(subtitle)$
<p class="subtitle">$subtitle$</p>
$endif$
$if(author)$
<p class="author">
$if(author-url)$
<a href="$author-url$">$author$</a>
$else$
$author$
$endif$
</p>
$endif$
$if(date)$
<p class="date $if(toc)$before-toc$endif$"><time datetime="$date$">$date$</time></p>
$endif$
</blockquote>
</header>
$if(toc)$
<nav id="$idprefix$TOC" role="doc-toc">
$if(return-url)$
<a href="$return-url$">$if(return-text)$$return-text$$else$← Return$endif$</a><br>
$endif$
<strong>Contents</strong><label for="contents">⊕</label>
<input type="checkbox" id="contents">
$table-of-contents$
</nav>
$endif$
<main>
$body$
</main>
$if(return-url)$
<footer>
<p class="signoff">
<a href="$return-url$">$if(return-text)$$return-text$$else$← Return$endif$</a>
</p>
</footer>
$endif$
<script>
;(function() {
// Non-essential if user has JavaScript off. Just makes checkboxes look nicer.
var selector = '.task-list > li > input[type="checkbox"]';
var checkboxes = document.querySelectorAll(selector);
Array.from(checkboxes).forEach((checkbox) => {
var wasChecked = checkbox.checked;
checkbox.disabled = false;
checkbox.addEventListener('click', (ev) => {ev.target.checked = wasChecked});
});
})();
</script>
$for(include-after)$
$include-after$
$endfor$
</body>
</html>