<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>{{ config.extra.main_title }}</title>
    <link rel="icon" type="image/png" href="favicon.png">
    <link rel="alternate" type="application/atom+xml" title="Feed" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
    <link rel="stylesheet" href="{{ get_url(path="style.css", trailing_slash=false) | safe }}">
    <script src="{{ get_url(path="search_index.en.js", trailing_slash=false) | safe }}"></script>
    <script src="{{ get_url(path="elasticlunr.min.js", trailing_slash=false) | safe }}"></script>
    <script src="{{ get_url(path="search.js", trailing_slash=false) | safe }}"></script>
    {% block head_extra %}
    {% endblock head_extra %}
  </head>
  <body>
      <div id="content">
          <header style="height:10em">
              <a href="{{config.base_url}}"><h2 style="float:left">{{ config.extra.main_title }}</h2></a>
              <nav id="headernav" style="float:right">
                  {% for item in config.extra.main_menu %}
                  <a itemprop="url"
                     class="{% if item.url | replace(from="$BASE_URL", to=config.base_url) == current_url %}active{% endif %}"
                     href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
                      {{ item.name }}
                  </a>
                  {% endfor %}
              <div id="searchbox">
              </div>
              </nav>
          </header>
          
          {% block content %} {% endblock %}
          
          <footer class="content" style="z-index: 200">
            <div>
                <a href="https://git.infra4future.de/hacc/haccfiles">Source in git</a> &bull;
                <a href="https://infra4future.de/impressum.html">Imprint</a>
            </div>
        </footer>

      </div>
  </body>
</html>