<!DOCTYPE html>
<html>
  <head>
    <title>{{ (page.title ?: config.title) | striptags }}</title>
    <link rel="stylesheet" href="/dist/main.css" />
    <meta property="og:type" content="article" />
    <meta property="og:title" content="{{ page.title | striptags }}" />
    <meta property="article:modified_time" content="{{ (page.body.time / 1000) | date("c") }}" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <link rel="icon" type="{{ favicon.type }}" href="{{ favicon.destination }}">
  </head>
    <script>
      window.config = {
        misprintsChatId: "{{ config.misprintsChatId }}",
        hawkClientToken:"{{ config.hawkClientToken }}",
      };
    </script>
  <body>
    {% include "components/header.twig" with res.locals.isAuthorized %}
    <div class="docs">

      {% include "components/sidebar.twig" %}

      <div class="docs__content">

        <div class="docs__content-inner">
          {% block body %}{% endblock %}
        </div>

        <aside class="docs__aside-right" id="layout-sidebar-right"></aside>
      </div>
    </div>
    <script src="/dist/main.bundle.js"></script>
    {% if config.yandexMetrikaId is not empty %}
      <script type="text/javascript" >
        (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
          m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
        (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

        ym({{ config.yandexMetrikaId }}, "init", {
          clickmap:true,
          trackLinks:true,
          accurateTrackBounce:true
        });
      </script>
      <noscript><div><img src="https://mc.yandex.ru/watch/{{ config.yandexMetrikaId }}" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
    {% endif %}
  </body>
</html>
