| 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.favicon.0 }}" type="{{ layout.favicon.1 }}"> |
| 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" href="{{ layout.base }}"> |
| 25 | {%- if let Some(logo) = layout.logo %}<img class="topbar-logo" src="{{ logo }}" alt="">{% endif -%} |
| 26 | <span class="label">{{ layout.site_title }}</span> |
| 27 | </a> |
| 28 | <div class="segmented theme-switch" role="group" aria-label="Color theme"> |
| 29 | <button type="button" data-theme-choice="auto" aria-pressed="false">Auto</button> |
| 30 | <button type="button" data-theme-choice="light" aria-pressed="false">Light</button> |
| 31 | <button type="button" data-theme-choice="dark" aria-pressed="false">Dark</button> |
| 32 | </div> |
| 33 | </header> |
| 34 | {%- if let Some(header) = layout.header %} |
| 35 | <div class="site-header shell">{{ header|safe }}</div> |
| 36 | {%- endif %} |
| 37 | <main class="shell"> |
| 38 | {% block content %}{% endblock %} |
| 39 | </main> |
| 40 | <footer class="footer shell"> |
| 41 | {%- if let Some(footer) = layout.footer %} |
| 42 | <div class="site-footer">{{ footer|safe }}</div> |
| 43 | {%- endif %} |
| 44 | <span class="label dim">Ferrenium {{ layout.version }}</span> |
| 45 | </footer> |
| 46 | </body> |
| 47 | </html> |