{% set brand_variant = brand_variant|default('header') %}
{% set is_footer = brand_variant == 'footer' %}
<a href="/" class="{% if is_footer %}footer-brand-link footer-brand-link-text{% else %}header-brand header-brand-text-only{% endif %}">
    <span class="header-brand-text">
        <span class="header-brand-name">{{ site.name }}</span>
        {% if site.tagline and not is_footer %}<span class="header-brand-tag">{{ site.tagline }}</span>{% endif %}
    </span>
</a>