{% import "macros/head.html" as macros_head %} {% import "macros/search.html" as macros_search %} {% import "macros/header.html" as macros_header %} {% import "macros/comments.html" as macros_comments %} {% import "macros/toc.html" as macros_toc %} {% import "macros/footer.html" as macros_footer %} {% import "macros/sidebar.html" as macros_sidebar %} {% if page is defined %} {{ macros_head::head(config=config, page=page, section=false, current_url=config.base_url) }} {% elif section is defined %} {{ macros_head::head(config=config, page=false, section=section, current_url=config.base_url) }} {% endif %} {% block extra_head %}{% endblock extra_head %} {{ macros_search::search(config=config) }}
{{ macros_header::header(config=config, lang=lang) }} {% set lang_root_path = "/" ~ lang ~ "/" %} {% if section is defined and (section.path == "/" or section.path == lang_root_path) and not config.extra.disable_root_sidebar_hide %}
{% else %}
{% endif %} {% block content %}{% endblock content %} {{ macros_comments::comments(config=config) }}
{% if page is defined %} {{ macros_toc::toc(page=page) }} {% endif %} {% if section is defined %} {{ macros_toc::toc(page=section) }} {% endif %}
{% set lang_root_path = "/" ~ lang ~ "/" %} {% if section is defined and (section.path == "/" or section.path == lang_root_path) and not config.extra.disable_root_sidebar_hide %} {% block js_body %} {% if config.build_search_index %} {% endif %} {% endblock js_body %}