blog/themes/next/layout/_partials/header/brand.njk

38 lines
1.4 KiB
Plaintext

<div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="{{ __('accessibility.nav_toggle') }}" role="button">
{%- if theme.menu %}
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
{%- endif %}
</div>
</div>
<div class="site-meta">
{%- if theme.custom_logo and theme.scheme === 'Muse' %}
<img class="custom-logo-image" src="{{ url_for(theme.custom_logo) }}" alt="{{ title }}">
{%- endif %}
<a href="{{ config.root }}" class="brand" rel="start">
<i class="logo-line"></i>
<{% if is_home() or is_archive() %}h1{% else %}p{% endif %} class="site-title">{{ title }}</{% if is_home() or is_archive() %}h1{% else %}p{% endif %}>
<i class="logo-line"></i>
</a>
{%- if subtitle %}
<p class="site-subtitle" itemprop="description">{{ subtitle }}</p>
{%- endif %}
{%- if theme.custom_logo and (theme.scheme === 'Gemini' or theme.scheme === 'Pisces') %}
<img class="custom-logo-image" src="{{ url_for(theme.custom_logo) }}" alt="{{ title }}">
{%- endif %}
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger" aria-label="{{ __('menu.search') }}" role="button">
{%- if theme.algolia_search.enable or theme.local_search.enable %}
<i class="fa fa-search fa-fw fa-lg"></i>
{%- endif %}
</div>
</div>
</div>