block--system-branding-block.html.twig 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. {% extends "block.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Theme override for a branding block.
  6. *
  7. * Each branding element variable (logo, name, slogan) is only available if
  8. * enabled in the block configuration.
  9. *
  10. * Available variables:
  11. * - site_logo: Logo for site as defined in Appearance or theme settings.
  12. * - site_name: Name for site as defined in Site information settings.
  13. * - site_slogan: Slogan for site as defined in Site information settings.
  14. */
  15. #}
  16. {% block content %}
  17. {% if site_logo or site_name %}
  18. <h1>
  19. {% if site_logo %}
  20. <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home" class="site-logo" data-drupal-link-system-path="<front>">
  21. <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
  22. </a>
  23. {% endif %}
  24. {% if site_name %}
  25. <a class="site-name" href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home" data-drupal-link-system-path="<front>">{{ site_name }}</a>
  26. {% endif %}
  27. </h1>
  28. {% endif %}
  29. {# % if site_slogan %}
  30. <h2 class="site-slogan">{{ site_slogan }}</h2>
  31. {% endif % #}
  32. {% endblock %}