{#- The version switcher already shows the version, so the label yields to it. -#} {%- set show_version_label = theme_show_version == "true" and version and not (lumina_version_json or lumina_version_rtd) -%} {%- set project_title = shorttitle if shorttitle != docstitle else project -%}
{% include "components/announcement.html" %}
{# Logo + project name; a long title truncates instead of pushing into the search box. #}
{% if lumina_light_logo is defined and lumina_dark_logo is defined and lumina_light_logo and lumina_dark_logo %} {{ _('%(project)s logo') | format(project=project) }} {{ _('%(project)s logo') | format(project=project) }} {% elif lumina_light_logo is defined and lumina_light_logo %} {{ _('%(project)s logo') | format(project=project) }} {% elif lumina_dark_logo is defined and lumina_dark_logo %} {{ _('%(project)s logo') | format(project=project) }} {% elif logo_url is defined and logo_url %} {{ _('%(project)s logo') | format(project=project) }} {% elif theme_logo_icon and theme_logo_icon != "" %} {{ lumina_icon(theme_logo_icon, size=theme_logo_icon_size|default(24) |int, css_class="lumina-logo-icon shrink-0") }} {% else %} {# Default Lumina logomark — geometric light prism #} {% endif %} {% if (not theme_logo_only or theme_logo_only == "false") and not show_version_label %} {{ project_title }} {% endif %} {% if show_version_label %} {# Title and version stack as sibling links: home vs. the versions page. #} {% if not theme_logo_only or theme_logo_only == "false" %} {{ project_title }} {% endif %} {% set version_text = version if version.startswith("v") else "v" ~ version %} {% if theme_version_url %} {% set version_doc = theme_version_url[:-5] if theme_version_url.endswith(".html") else theme_version_url %} {{ version_text }} {% else %} {{ version_text }} {% endif %} {% endif %} {% include "components/version-switcher.html" %}
{# Center nav links #} {% if theme_nav_links and theme_nav_links != "" %} {% endif %} {# Right side: search + theme toggle + social #}
{# Search trigger #} {# Theme toggle #} {% if lumina_wide_layout_mode == "toggle" %} {# Layout width toggle — only visible on wide screens #} {% endif %} {# Social links #} {% if theme_social_links and theme_social_links != "" %} {% for link in theme_social_links %} {% if link.image %} {% elif link.icon == "github" %} {% else %} {{ lumina_icon(link.icon, size=20, css_class="h-5 w-5") or lumina_icon("link", size=20, css_class="h-5 w-5") }} {% endif %} {% endfor %} {% endif %} {# Mobile hamburger — hidden on landing page which has no sidebar #} {% if not is_landing %} {% endif %}