{%- import "partials/macros.html" as m with context -%} {%- if side_items or drawer_items or drawer_tabs or drawer_links %} {{ icon('menu') }} {%- endif %} {%- if config.theme.logo and config.theme.logo_dark %} {%- elif config.theme.logo %} {%- else %} {% include "partials/logo.html" %} {%- endif %} {{ config.theme.brand or config.site_name }} {%- if header_links %} {%- for l in header_links %} {{ l.text }} {%- endfor %} {%- endif %} {%- if tabs_on %} {%- for item in nav.items if not (item.is_page and item.is_homepage) %} {%- set href = m.first_url(item) | trim %} {{ item.title }} {%- endfor %} {%- endif %} {{ icon('search') }}{{ t('search') }}Ctrl K {%- if config.theme.version_provider %} {{ icon('git-branch') }}{{ icon('chevron-down', 'sumi-chevron') }} {%- endif %} {%- if versions and not config.theme.version_provider %} {{ icon('git-branch') }}{{ vns.current.title }}{{ icon('chevron-down', 'sumi-chevron') }} {%- for v in versions %} {{ v.title }}{% if loop.first %} {{ t('latest') }}{% endif %} {%- endfor %} {%- endif %} {%- if config.extra.alternate %} {{ icon('languages') }} {%- for alt in config.extra.alternate %} {{ alt.name }} {%- endfor %} {%- endif %} {{ icon('sun', 'sumi-when-light') }}{{ icon('moon', 'sumi-when-dark') }} {%- if config.repo_url %} {%- if sumi.repo_stars %} {{ m.repo_icon(config.repo_url) }}{{ sumi.repo_stars }} {%- else %} {{ m.repo_icon(config.repo_url) }} {%- endif %} {%- endif %} {%- if header_button %} {{ header_button.text }} {%- endif %}