Krolyxon
Commit 55c1225

ferreniumtemplatesbase.html

41 lines · 1.8 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<link rel="icon" href="{{ layout.static_base }}icons/favicon.svg" type="image/svg+xml">
15<script src="{{ layout.static_base }}js/theme.js"></script>
16<script src="{{ layout.static_base }}js/app.js" defer></script>
17{%- block head %}{% endblock %}
18</head>
19<body>
20<header class="topbar shell">
21 <a class="topbar-home label" href="{{ layout.base }}">{{ layout.site_title }}</a>
22 <div class="segmented theme-switch" role="group" aria-label="Color theme">
23 <button type="button" data-theme-choice="auto" aria-pressed="false">Auto</button>
24 <button type="button" data-theme-choice="light" aria-pressed="false">Light</button>
25 <button type="button" data-theme-choice="dark" aria-pressed="false">Dark</button>
26 </div>
27</header>
28{%- if let Some(header) = layout.header %}
29<div class="site-header shell">{{ header|safe }}</div>
30{%- endif %}
31<main class="shell">
32{% block content %}{% endblock %}
33</main>
34<footer class="footer shell">
35 {%- if let Some(footer) = layout.footer %}
36 <div class="site-footer">{{ footer|safe }}</div>
37 {%- endif %}
38 <span class="label dim">Ferrenium {{ layout.version }}</span>
39</footer>
40</body>
41</html>