-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathbase.html
235 lines (213 loc) · 9.47 KB
/
base.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{% import 'macros.html' as macros %}
<!DOCTYPE html>
<html lang="{{lang}}">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="#ffffff" name="theme-color" />
<meta content="#da532c" name="msapplication-TileColor" />
{% if config.extra.favicon.webmanifest %}
<link href='{{ config.extra.favicon.webmanifest }}' rel="manifest" />
{% endif %}
{% if config.extra.favicon.safari_pinned_tab %}
<link color="#5bbad5" href='{{ config.extra.favicon.safari_pinned_tab }}' rel="mask-icon" />
{% endif %}
{% if config.extra.favicon.favicon_16x16 %}
<link href='{{ config.extra.favicon.favicon_16x16 }}' rel="icon" sizes="16x16" type="image/png" />
{% endif %}
{% if config.extra.favicon.favicon_32x32 %}
<link href='{{ config.extra.favicon.favicon_32x32 }}' rel="icon" sizes="32x32" type="image/png" />
{% endif %}
{% if config.extra.favicon.apple_touch_icon %}
<link href='{{ config.extra.favicon.apple_touch_icon }}' rel="apple-touch-icon" sizes="180x180" />
{% endif %}
{% if config.extra.galleria.enabled %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/galleria@1.6.1/dist/themes/folio/galleria.folio.min.css" integrity="sha384-+rY0QD+LRnTOquDMzGa9lXU6jIwdiQuwCJQ2cdcW0qeP/0UbjQCZlXnRsUMA+9pH" crossorigin="anonymous">
{% endif %}
{% if config.extra.mapbox.enabled %}
<link rel="stylesheet" href="https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.css" integrity="sha384-oGm59HWAkwO32h2w8u0B98wKBZJwd6MbWtAJwQKCTffZjOXHXrnyv9Syjovgc+UV" crossorigin="anonymous">
{% endif %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1.9.1/css/academicons.min.css" integrity="sha384-FIue+PI4SsI9XfHCz8dBLg33b0c1fMJgNU3X//L26FYbGnlSEfWmNT7zgWc2N9b6" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.2.0/css/all.min.css" integrity="sha256-AbA177XfpSnFEvgpYu1jMygiLabzPCJCRIBtR5jGc0k=" crossorigin="anonymous">
<link href="{{ get_url(path='deep-thought.css') }}" rel="stylesheet" />
{% block user_custom_stylesheet %}
{% endblock %}
<title>
{% block title %}
{{ config.title }}
{% endblock title %}
</title>
{% block analytics %}
{% if config.extra.analytics.google %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config.extra.analytics.google }}"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "{{ config.extra.analytics.google }}");
</script>
{% endif %}
{% endblock analytics %}
{% if config.extra.katex.enabled %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css" integrity="sha384-R4558gYOUz8mP9YWpZJjofhk+zx0AS11p36HnD2ZKj/6JR5z27gSSULCNHIRReVs" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js" integrity="sha384-z1fJDqw8ZApjGO3/unPWUPsIymfsJmyrDVWC8Tv/a1HeOtGmkwNd/7xUS0Xcnvsx" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/contrib/mathtex-script-type.min.js" integrity="sha384-jiBVvJ8NGGj5n7kJaiWwWp9AjC+Yh8rhZY3GtAX8yU28azcLgoRo4oukO87g7zDT" crossorigin="anonymous"></script>
{% if config.extra.katex.auto_render %}
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"></script>
{% endif %}
{% endif %}
</head>
<body class="has-background-white">
<nav aria-label="section navigation" class="navbar is-light" role="navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item is-size-5 has-text-weight-bold" href="{{config.base_url}}">{{ config.title }}</a>
<a aria-expanded="false" aria-label="menu" class="navbar-burger burger" data-target="navMenu" role="button">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div class="navbar-menu" id="navMenu">
<div class="navbar-end has-text-centered">
{% for item in config.extra.navbar_items %}
{% if lang == item.code %}
{% for nav in item.nav_items %}
<a class="navbar-item has-text-weight-semibold" href="{{ nav.url | replace(from='$BASE_URL', to=config.base_url) }}">
{{ nav.name }}
</a>
{% endfor %}
{% endif %}
{% endfor %}
<a class="navbar-item" id="nav-search" title="Search" data-target="#search-modal">
<span class="icon">
<i class="fas fa-search"></i>
</span>
</a>
<a class="navbar-item" id="dark-mode" title="Switch to dark theme">
<span class="icon">
<i class="fas fa-adjust"></i>
</span>
</a>
</div>
</div>
</div>
</nav>
{% block header %}
{% endblock %}
{% block content %}
{% endblock %}
{% block search %}
<section class="modal" id="search-modal">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Search</p>
</header>
<section class="modal-card-body">
<div class="field mb-2">
<div class="control">
<input class="input" id="search" placeholder="Search this website." type="search" />
</div>
</div>
<div class="search-results">
<div class="search-results__items"></div>
</div>
</section>
</div>
<button aria-label="close" class="modal-close is-large"></button>
</section>
{% endblock %}
{% block pagination %}
{% if paginator.previous or paginator.next %}
<section class="section">
<div class="container">
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
<a class="pagination-previous" href='{{ paginator.previous }}' {% if not paginator.previous %}disabled{% endif %}>
<span class="icon">
<i class="fas fa-angle-double-left"></i>
</span>
Previous
</a>
<a class="pagination-next" href='{{ paginator.next }}' {% if not paginator.next %}disabled{% endif %}>
Next page
<span class="icon">
<i class="fas fa-angle-double-right"></i>
</span>
</a>
<ul class="pagination-list">
{% for pager in range(start=1, end=paginator.number_pagers+1) %}
<li>
<a class="pagination-link {% if paginator.current_index == pager %}is-current{% endif %}" href='{{ paginator.base_url }}{{pager}}' aria-label="Goto page {{pager}}">
{{pager}}
</a>
</li>
{% endfor %}
</ul>
</nav>
</div>
</section>
{% endif %}
{% endblock %}
{% block comment %}
{% endblock %}
{% block footer %}
<footer class="footer py-4">
<div class="content has-text-centered">
<p>
Built with
<span class="icon-text">
<span class="icon">
<i class="fas fa-code"></i>
</span>
<span>code</span>
</span>
and
<span class="icon-text">
<span class="icon">
<i class="fas fa-heart"></i>
</span>
<span>love</span>
</span>
</p>
<p>
Powered by
<span class="icon-text">
<span class="icon">
<i class="fas fa-power-off"></i>
</span>
<span>zola</span>
</span>
</p>
</div>
</footer>
{% endblock %}
{% if config.extra.galleria.enabled %}
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/galleria@1.6.1/dist/galleria.min.js" integrity="sha384-QSfwGT8/EU536DKdtyP2D6SLlh8zBaZ0cVkwfrwhqzIU9VCfJT00CLVP5t+HAiYg" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/galleria@1.6.1/dist/themes/folio/galleria.folio.min.js" integrity="sha384-DwpKI+deZB267+hPKwiOIc5Y2GKsVL0mR6hgz7GgIu7AgAMYqJwcJKY1YBNfhWcY" crossorigin="anonymous"></script>
{% endif %}
{% if config.extra.mermaid.enabled %}
<script src="https://cdn.jsdelivr.net/npm/mermaid@8.13.5/dist/mermaid.min.js" integrity="sha384-0yWn54pSGtfKCU+skfA69l25VsCw+MZt4LQov3xNRoS7YkAMrFokGgSBnAWSK4pv" crossorigin="anonymous"></script>
{% endif %}
{% if config.extra.chart.enabled %}
<script src="https://cdn.jsdelivr.net/npm/chart.xkcd@1.1.13/dist/chart.xkcd.min.js" integrity="sha384-xC3h1+IHXK8seA+8KfT79Z4e0GPsznjXBoMa5nd8ooWKplPyXx92NOmljWxLC/cs" crossorigin="anonymous"></script>
{% endif %}
{% if config.extra.mapbox.enabled %}
<script src="https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.js" integrity="sha384-Pulw7+h73841BQIK0LzJCydKRPChJUF9w8h8W0o3h+cLtoyNPJS847bQauLWOTwg" crossorigin="anonymous"></script>
{% endif %}
<script src="{{ get_url(path='elasticlunr.min.js') }}"></script>
<script src="{{ get_url(path='search_index.' ~ lang ~ '.js') }}"></script>
{%- if lang != "en" -%}
{%- block other_lang_search_js -%}
{%- endblock -%}
{%- endif -%}
<script src="{{ get_url(path='js/site.js') }}"></script>
{% block custom_js %}
{% endblock %}
{% block user_custom_js %}
{% endblock %}
</body>
</html>