AkurAI Build
Menu

Public repository / e2f0de773e72a80765be4f47d3c8c67c66907169

AkurAI-Framework / site/frontend/header.html

Latest change e2f0de773e72a80765be4f47d3c8c67c66907169 - release: v0.8.0 by Ólafur Búi Ólafsson

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>{% if meta_title %}{{ meta_title }}{% else %}{{ title }}{% endif %}</title>
    <meta name="description" content="{% if meta_description %}{{ meta_description }}{% else %}{{ description }}{% endif %}" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="{% if meta_title %}{{ meta_title }}{% else %}{{ title }}{% endif %}" />
    <meta property="og:description" content="{% if meta_description %}{{ meta_description }}{% else %}{{ description }}{% endif %}" />
    <link rel="stylesheet" href="/styles.css" />
    <!-- Named multi-theme tokens (:root[data-theme]); must come after styles.css
         so the active theme's values win. -->
    <link rel="stylesheet" href="/themes.css" />
    <!-- Flash-guard: set the active theme before first paint. -->
    <script>
      (function () {
        try {
          var t = localStorage.getItem("akurai-theme");
          if (!t) t = matchMedia("(prefers-color-scheme: light)").matches ? "akurai-light" : "akurai";
          document.documentElement.setAttribute("data-theme", t);
        } catch (e) {}
      })();
    </script>
    <script type="module" src="/theme.js"></script>
  </head>
  <body>
    <header class="nav">
      <a class="brand" href="/"><span class="mark">◆</span> AkurAI<span class="brand-dim">/Framework</span></a>
      <nav class="nav-links">
        {% for link in nav %}<a href="{{ link.href }}">{{ link.label }}</a>{% endfor %}
        <span class="theme-picker" data-theme-picker></span>
      </nav>
    </header>