Krolyxon
Tag v0.2.0

ferreniumtemplatesbase.html

44 lines · 2.0 KB · HTML

1<!doctype html>
2<html lang="en" data-default-theme="{{ layout.theme }}"{% if layout.theme != "auto" %} data-theme="{{ layout.theme }}"{% endif %}>
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<meta name="color-scheme" content="dark light">
7<title>{{ layout.page_title }}</title>
8<link rel="preload" href="{{ layout.static_base }}fonts/space-grotesk-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
9<link rel="preload" href="{{ layout.static_base }}fonts/space-mono-latin-400.woff2" as="font" type="font/woff2" crossorigin>
10<link rel="stylesheet" href="{{ layout.static_base }}css/app.css">
11{%- if let Some(css) = layout.site_css %}
12<link rel="stylesheet" href="{{ css }}">
13{%- endif %}
14{%- if let Some(feed) = layout.feed %}
15<link rel="alternate" type="application/atom+xml" title="Commits" href="{{ feed }}">
16{%- endif %}
17<link rel="icon" href="{{ layout.static_base }}icons/favicon.svg" type="image/svg+xml">
18<script src="{{ layout.static_base }}js/theme.js"></script>
19<script src="{{ layout.static_base }}js/app.js" defer></script>
20{%- block head %}{% endblock %}
21</head>
22<body>
23<header class="topbar shell">
24 <a class="topbar-home label" href="{{ layout.base }}">{{ layout.site_title }}</a>
25 <div class="segmented theme-switch" role="group" aria-label="Color theme">
26 <button type="button" data-theme-choice="auto" aria-pressed="false">Auto</button>
27 <button type="button" data-theme-choice="light" aria-pressed="false">Light</button>
28 <button type="button" data-theme-choice="dark" aria-pressed="false">Dark</button>
29 </div>
30</header>
31{%- if let Some(header) = layout.header %}
32<div class="site-header shell">{{ header|safe }}</div>
33{%- endif %}
34<main class="shell">
35{% block content %}{% endblock %}
36</main>
37<footer class="footer shell">
38 {%- if let Some(footer) = layout.footer %}
39 <div class="site-footer">{{ footer|safe }}</div>
40 {%- endif %}
41 <span class="label dim">Ferrenium {{ layout.version }}</span>
42</footer>
43</body>
44</html>