{# Same locale caveat as the sidebar in base.html. #} {%- if config.theme.include_sidebar and nav and (page or not config.plugins.get('i18n')) %} {# The mobile hamburger comes first, matching the usual left-edge placement. #}
{%- if config.theme.icon == 'lucide' %} {%- else %} {%- endif %}
{% include "partials/nav.html" %}
{%- endif %} {# `nav` belongs to whichever locale mkdocs-static-i18n happened to build last, and a static template (404.html) is rendered once, outside any locale. Using its homepage there sends an English visitor to, say, the French home page; base_url is locale-agnostic and always right. #} {%- if config.theme.logo %} {%- endif %} {{ config.site_name }}
{%- if 'search' in config.plugins %} {% include "partials/search-box.html" %} {%- endif %} {% include "partials/language.html" %} {% include "partials/color-mode.html" %}