{% extends "base.html" %}
{# see: https://github.com/squidfunk/mkdocs-material/blob/9.4.8/src/templates/base.html #}

{% block extrahead %}
<meta name="GIT_DESCRIBE" content="{{ config.env.GIT_DESCRIBE }}" />
<meta name="PICODATA_DOC_VER" content="{{ config.env.PICODATA_DOC_VER }}" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet" />

<!-- Yandex.Метрика (counter 99962757) — unified with picodata.io -->
<script>
  (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();
  for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
  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(99962757, "init", {
    clickmap: true,
    trackLinks: true,
    accurateTrackBounce: true,
    webvisor: true
  });
</script>
{% endblock %}

{% block analytics %}
  {{ super() }}
  <noscript>
    <div><img src="https://mc.yandex.ru/watch/99962757" style="position:absolute; left:-9999px;" alt="" /></div>
  </noscript>
{% endblock %}

{% block header %}
  {% include "partials/header.html" %}
{% endblock %}

{% block content %}
  <nav aria-label="breadcrumb" class="md-header__breadcrumb">
    <span class="md-header__breadcrumb-nav">
      <a href="{{ '/' | url }}">Главная</a>

      {% if page and page.ancestors %}
        {% for ancestor in page.ancestors[::-1] %}
          <span class="md-header__breadcrumb-separator">/</span>
          <span class="md-header__breadcrumb-nav">{{ ancestor.title }}</span>
        {% endfor %}
      {% endif %}

      {% if page and page.title %}
        <span class="md-header__breadcrumb-separator">/</span>
        <span class="md-header__breadcrumb-current">{{ page.title }}</span>
      {% endif %}
    </span>
  </nav>

  {{ super() }}
{% endblock %}
