{% import 'macros.html' as macros %}

<!DOCTYPE html>
<html lang="{{ lang }}">

<head>
    <meta charset="utf-8" />
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    {% include "partials/shared/head.html" %}
</head>

<body class="has-background-white">

    {% include "partials/shared/nav.html" %}

    {% block content %}{% endblock %}

    {% block search %}
        {% include "partials/shared/search.html" %}
    {% endblock %}

    {% block pagination %}
        {% include "partials/shared/paginator.html" %}
    {% endblock %}

    {% block comment %}{% endblock %}

    {% include "partials/shared/footer.html" %}

    {% if config.extra.mermaid.enabled %}
    <script src="https://cdn.jsdelivr.net/npm/mermaid@8.13.5/dist/mermaid.min.js"
        integrity="sha384-0yWn54pSGtfKCU+skfA69l25VsCw+MZt4LQov3xNRoS7YkAMrFokGgSBnAWSK4pv"
        crossorigin="anonymous"></script>
    {% endif %}

    <script src="{{ get_url(path='elasticlunr.min.js') }}"></script>
    <!-- <script src="{{ get_url(path='search_index.' ~ lang ~ '.js') }}"></script> -->
    {%- if lang != "en" -%}
    {%- block other_lang_search_js -%}{%- endblock -%}
    {%- endif -%}
    <script src="{{ get_url(path='js/site.js') }}"></script>

    {% block custom_js %}{% endblock %}

    {% block user_custom_js %}{% endblock %}
</body>

</html>