-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_template.html
75 lines (72 loc) · 2.13 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
<link rel="stylesheet" href="/custom.css">
<link rel="icon" type="image/svg" href="/assets/logo.svg">
$if(title)$
<title>$title$</title>
$else$
<title>Miller Arlindo Hall</title>
$endif$
$if(description)$
<meta name="description" content="$description$">
$else$
$if(title)$
<meta name="description" content="$title$">
$else$
<meta name="description" content=$outputfile$>
$endif$
$endif$
<meta name="author" content="Miller Arlindo Hall ([email protected])">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
<h1>Miller Hall</h1>
<nav>
<a href="/">home</a>
<a href="/wiki.html">wiki</a>
<a href="/posts.html">posts</a>
<a href="https://twitter.com/arlindohall">twitter</a>
</nav>
</header>
<main>
$if(date)$
<p class="light-text">$date$</p>
$endif$
<!--
Indentation is messed up here because pandoc indents code blocks
if they are indented with the content.
-->
$body$
</main>
<footer>
<img class="index-personal-logo"
title="Personal logo"
alt="Personal website logo, a monogram of MAH, my initials"
style="height: 40px;"
src="/assets/logo.svg">
</img>
<p>Page source on GitHub:
(<a href="https://github.com/arlindohall/arlindohall.github.io/blob/mainline/$outputfile$">html</a>,
<a href="https://github.com/arlindohall/arlindohall.github.io/blob/mainline/$sourcefile$">md</a>)
</p>
</footer>
</body>
<script>
window.addEventListener('DOMContentLoaded', () => {
let headers = document.querySelectorAll("h1,h2,h3,h4");
for (let h of headers) {
let content = h.textContent;
let id = '#' + h.id;
let a = document.createElement('a');
a.setAttribute('href', id);
a.textContent = content;
h.textContent = '';
h.appendChild(a);
}
});
</script>
</html>