summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-21 19:57:20 +0100
committerVolpeon <git@volpeon.ink>2020-12-21 19:57:20 +0100
commitc348cc8cc76306c3d3e533888b3d30ea7566e075 (patch)
tree943f0894ea82ad7543cb3aa7cabafb0235ba6486 /templates/base.html
parentAdded HTML (diff)
downloadvolpeon.ink-c348cc8cc76306c3d3e533888b3d30ea7566e075.tar.gz
volpeon.ink-c348cc8cc76306c3d3e533888b3d30ea7566e075.tar.bz2
volpeon.ink-c348cc8cc76306c3d3e533888b3d30ea7566e075.zip
Use Pandoc to write content in Markdown
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..1f7613c
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,67 @@
1<!DOCTYPE html>
2<html>
3
4<head>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 $for(author-meta)$
8 <meta name="author" content="$author-meta$" />
9 $endfor$
10 $if(date-meta)$
11 <meta name="dcterms.date" content="$date-meta$" />
12 $endif$
13 $if(keywords)$
14 <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
15 $endif$
16 <title>$if(ismain)$$else$$title$ – $endif$$sitetitle$</title>
17 <link rel="stylesheet" href="/style.css" />
18 <style>
19 @font-face {
20 font-family: "Iosevka Term SS09";
21 font-style: normal;
22 font-weight: normal;
23 src: url("/iosevka-term-ss09-regular.woff2") format("woff2");
24 }
25
26 @font-face {
27 font-family: "Iosevka Term SS09";
28 font-style: normal;
29 font-weight: bold;
30 src: url("/iosevka-term-ss09-bold.woff2") format("woff2");
31 }
32 </style>
33</head>
34
35<body>
36 <main class="s-page">
37 $if(ismain)$
38 <header class="c-page-header" role="presentation">
39${pageHeader()}
40 </header>
41 $else$
42 <header class="c-page-header c-page-header--nohide" role="presentation">
43${pageHeaderSm()}
44 </header>
45 $endif$
46
47 $body$
48 </main>
49
50 $if(ismain)$
51 <template id="header-sm">
52 <header class="c-page-header c-page-header--sm" role="presentation">
53${pageHeaderSm()}
54 </header>
55 </template>
56
57 <script>
58 var headerEl = document.querySelector(".s-page > header");
59 var headerTemplateEl = document.getElementById("header-sm");
60 var headerSmEl = headerTemplateEl.content.cloneNode("true");
61
62 headerEl.parentElement.insertBefore(headerSmEl, headerEl.nextElementSibling);
63 </script>
64 $endif$
65</body>
66
67</html>