blob: 4374b7cdd7746077d9235173683888d21893dc6e (
plain)
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
|
{% import "macro.html" as macro %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
<link rel="stylesheet" href="{{ get_url(path="main.css") | safe }}">
</head>
<body>
<nav>
<div id="subnav">
<form class="theme-selector">
<button type="button" id="theme-light-button" class="theme-button" onclick="enableTheme('light', true)">◪</button>
<button type="button" id="theme-dark-button" class="theme-button enabled" onclick="enableTheme('dark', true)">◩</button>
</form>
<a href="/search">⌕</a>
</div>
{% block nav %}
<ul id="breadcrumbs">
{% for tax in config.taxonomies %}
<li>/<a href="/{{tax.name}}/">{{tax.name}}</a> </li>
{% endfor %}
</ul>
<h1>{{ config.title }}</h1>
{{ macro::tree() }}
{% endblock nav %}
</nav>
<main>
{% block content %}
{% set_global header_count = 0 %}
{% for h2 in section.toc %}
{% set_global header_count = header_count + 1 %}
{% for h3 in h2.children %}
{% set_global header_count = header_count + 1 %}
{% for h4 in h3.children %}
{% set_global header_count = header_count + 1 %}
{% endfor %}
{% endfor %}
{% endfor %}
{% if header_count > 4 %}
<ul id="toc">
{% for h2 in section.toc %}
<li><a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
{% if h2.children %}<ul>
{% for h3 in h2.children %}
<li><a href="{{ h3.permalink | safe }}">{{ h3.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
<article>
{{ section.content | safe }}
</article>
{% endblock content %}
</main>
<script type="text/javascript" src="{{ get_url(path="themes.js") | safe }}"></script>
<script>
function burger() {
var x = document.getElementById("bger");
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
}
</script>
</body>
</html>
|