{% extends "block.html.twig" %}
{#
/**
 * @file
 * Theme override for a branding block.
 *
 * Each branding element variable (logo, name, slogan) is only available if
 * enabled in the block configuration.
 *
 * Available variables:
 * - site_logo: Logo for site as defined in Appearance or theme settings.
 * - site_name: Name for site as defined in Site information settings.
 * - site_slogan: Slogan for site as defined in Site information settings.
 */
#}

{% block content %}
  {% set home_url = url('<front>') %}
  {% set site_logo_url = site_logo ? file_url(site_logo) : '' %}
  {% if site_logo is empty %}
    {{ include('@mercury/components/branding/branding.twig', { url: home_url }) }}
  {% else %}
    <a href="{{ home_url }}">
      <img class="hg:block hg:max-h-25" src="{{ site_logo_url }}" alt="{{ site_name }}">
    </a>
  {% endif %}
{% endblock %}
