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
|
{% import "macros.html" as macros %}
<!DOCTYPE html>
<html lang="{{ config.default_language }}">
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<!-- Instructions for web crawlers -->
<meta name="robots" content="index, follow">
<!--- Below are the meta tags that are important for SEO \\ they are also important for social media sharing embeds --->
<meta name="description" content="{{ config.description }}">
<meta name="keywords" content="{{ config.extra.meta.keywords }}">
<meta name="title" content="{{ config.title }}">
<meta name="author" content="{{ config.extra.author.name }}">
<!--- Many websites use Open Graph so it has become standard to include --->
<meta property="og:title" content="{{ config.title }}">
<meta property="og:site_name" content="{{ config.title }}">
<meta property="og:description" content="{{ config.description }}">
<meta property="og:image" content="{{ config.extra.meta.preview_image_src }}">
<meta property="og:image:alt" content="{{ config.extra.meta.preview_image_alt }}">
<meta property="og:url" content="{{ config.base_url }}">
<meta property="og:type" content="{{ config.extra.meta.website_type }}">
<!--- Below is for twitter general info --->
<meta name="twitter:domain" content="{{ config.base_url }}">
<meta name="twitter:description" content="{{ config.description }}">
<meta name="twitter:title" content="{{ config.title }}">
<!--- Below is for twitter sharing previews \\ you can test this at https://threadcreator.com/tools/twitter-card-validator --->
<meta name="twitter:card" content="{{ config.extra.meta.twitter_card }}">
<meta name="twitter:image" content="{{ config.extra.meta.preview_image_src }}">
<meta name="twitter:image:src" content="{{ config.extra.meta.preview_image_src }}">
<meta name="twitter:image:alt" content="{{ config.extra.meta.preview_image_alt }}">
<!--- If you have accounts on twitter that are relevant to your site --->
<meta name="twitter:site" content="{{ config.extra.meta.twitter_creator }}">
<meta name="twitter:creator" content="{{ config.extra.meta.twitter_creator }}">
<!-- Icons and Stylesheets -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ get_url(path="apple-touch-icon.png") }}"/>
<link rel="icon" type="image/png" sizes="32x32" href="{{ get_url(path="favicon-32x32.png") }}"/>
<link rel="icon" type="image/png" sizes="16x16" href="{{ get_url(path="favicon-16x16.png") }}"/>
<link rel="manifest" href="{{ get_url(path="site.webmanifest") }}">
<link rel="mask-icon" href="{{ get_url(path="safari-pinned-tab.svg") }}" color="#030303">
<meta name="msapplication-TileColor" content="#603cba">
<!-- <meta name="theme-color" content="#ffffff"> discord fancy ruler line on the left of link preview embeds -->
<link rel="shortcut icon" href="{{ get_url(path="favicon.ico") }}"/> <!-- this is for old browsers that don't support the other tags -->
<!-- Stylesheets -->
<link rel="stylesheet" href="{{ get_url(path="style.css") }}"/>
{% if page.title %}
<title>{{ page.title }}</title>
{% else %}
<title>{{ config.title }}</title>
{% endif %}
{% if config.generate_feed %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path=config.feed_filename, trailing_slash=false) }}">
{% endif %}
<body id="page">
{% block header %}
{% endblock header %}
{% block title %}
<div id="spotlight" class="animated fadeIn">
<div id="home-center">
<h1 id="home-title">{{ config.title }}</h1>
<p id="home-subtitle">{{ config.extra.home_subtitle }}</p>
<div id="home-social">
{{ macros::render_social_icons() }}
</div>
{% endblock title %}
{% block main %}
<nav id="home-nav" class="site-nav">
{% for s in config.extra.hermit_menu %}
<a href="{{ config.base_url ~ s.link }}">{{ s.name }}</a>
{% endfor %}
</nav>
{% endblock main %}
</div>
{% block footer %}
<div id="home-footer">
<p>© {{ now() | date(format="%Y") }}
<a href="{{ config.base_url }}">{{ config.extra.author.name }}</a>
{% if config.generate_feed %}
·
<a href="{{ get_url(path=config.feed_filename, trailing_slash=false) }}" target="_blank" title="rss">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-rss">
<path d="M4 11a9 9 0 0 1 9 9"></path>
<path d="M4 4a16 16 0 0 1 16 16"></path>
<circle cx="5" cy="19" r="1"></circle>
</svg>
</a>
{% endif %}
</p>
</div>
{% endblock footer %}
</div>
<script src="{{ get_url(path="js/main.js") }}"></script>
<!-- Math rendering with KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
<!-- To automatically render math in text elements, include the auto-render extension -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"
onload="renderMathInElement(document.body, { delimiters: [ {left: '$$', right: '$$', display: true}, {left: '$', right: '$', display: false}, {left: '\\[', right: '\\]', display: true}, {left: '\\(', right: '\\)', display: false}]});"></script>
{% if config.extra.google_analytics.enable %}
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config.extra.google_analytics.id }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ config.extra.google_analytics.id }}');
</script>
{% endif %}
</body>
</html>
|