<!--
SPDX-FileCopyrightText: 2021 GNOME Foundation

SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later
-->

<!DOCTYPE html>
<html lang="en">
<head>
  <title>{% block title %}{{ LIBRARY_NAME }}{% endblock %}</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <meta charset="utf-8" />

  <meta property="og:site_name" content="{{ SITENAME }}"/>
  <meta property="og:title" content="{{ SITENAME }}"/>
  <meta property="og:url" content="{{ SITEURL }}"/>
  <meta property="og:type" content="website"/>

  {% if LOGO_FILE %}
  <meta property="og:image:width" content="512"/>
  <meta property="og:image:height" content="512"/>
  <meta property="og:image:secure_url" content="{{ SITEURL }}/{{ LOGO_FILE }}"/>
  <meta property="og:image:alt" content="{{ LIBRARY_NAME }}"/>
  {% endif %}

  {% block meta_other %}{% endblock %}

  <meta name="twitter:title" content="{{ SITENAME }}"/>
  <meta name="twitter:url" content="{{ SITEURL }}"/>
  <meta name="twitter:card" content="summary"/>

  <link rel="canonical" href="{{ SITEURL }}"/>

  <link rel="stylesheet" href="style.css" type="text/css" />

  {% block style_other %}{% endblock %}

  {% if CONFIG.urlmap_file %}
  <script src="{{ CONFIG.urlmap_file }}"></script>
  {% endif %}
  <script src="main.js"></script>
  <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>

<body>
  <div id="body-wrapper" tabindex="-1">

    <nav class="sidebar">
      {% if CONFIG.logo_url %}
      <div class="section">
        <img src="{{ CONFIG.logo_url }}" class="logo"/>
      </div>
      {% endif %}
      {% if CONFIG.search_index %}
      <div class="search section">
        <form id="search-form" method="GET">
          <input class="search-input" type="text" name="q" placeholder="Search docs"/>
        </form>
      </div>
      {% endif %}
      <div class="section namespace">
        <h3><a href="index.html">{{ namespace.name }}</a></h3>
        <p>API Version: {{ namespace.version }}</p>
        {% if CONFIG.version %}
        <p>Library Version: {{ CONFIG.version }}</p>
        {% endif %}
      </div>
      {% block sidebar %}
      {% endblock %}
    </nav>

    {% block navbar %}
    <button id="btn-to-top" class="hidden"><span class="up-arrow"></span></button>
    {% endblock %}

    {% block content %}{% endblock %}

    <section id="search" class="content hidden"></section>

    {% if CONFIG.search_index %}
    <script src="search.js"></script>
    {% endif %}

    <footer>
    {% block footer %}{% endblock %}
    </footer>
  </div>
</body>
</html>
