branding.twig

Same filename in other branches
  1. 11.x core/profiles/demo_umami/themes/umami/components/branding/branding.twig
<div{{ attributes.addClass('branding') }}>
  {% if site_logo %}
    <a href="{{ url }}" rel="home" class="branding__site-logo">
      <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
    </a>
  {% endif %}

  {% if site_name %}
    <div class="branding__site-name">
      <a href="{{ url }}" rel="home">
        {% block site_name %}{% endblock %}
      </a>
    </div>
  {% endif %}
  {% if site_slogan %}
    <div class="branding__site-slogan">
      {% block site_slogan %}{% endblock %}
    </div>
  {% endif %}
</div>

File

core/profiles/demo_umami/themes/umami/components/branding/branding.twig

View source
  1. <div{{ attributes.addClass('branding') }}>
  2. {% if site_logo %}
  3. <a href="{{ url }}" rel="home" class="branding__site-logo">
  4. <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
  5. </a>
  6. {% endif %}
  7. {% if site_name %}
  8. <div class="branding__site-name">
  9. <a href="{{ url }}" rel="home">
  10. {% block site_name %}{% endblock %}
  11. </a>
  12. </div>
  13. {% endif %}
  14. {% if site_slogan %}
  15. <div class="branding__site-slogan">
  16. {% block site_slogan %}{% endblock %}
  17. </div>
  18. {% endif %}
  19. </div>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.