block--system-branding-block.html.twig 855 B

123456789101112131415161718192021222324252627282930313233
  1. {% extends "block.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Default theme implementation 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. * @ingroup themeable
  16. */
  17. #}
  18. {% block content %}
  19. <hgroup class="logo">
  20. {% if site_name %}
  21. <h1>
  22. <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">
  23. {{ site_name }}
  24. </a>
  25. </h1>
  26. {% endif %}
  27. {% if site_slogan %}
  28. <span class="slogan">
  29. {{ site_slogan }}
  30. </span>
  31. {% endif %}
  32. </hgroup>
  33. {% endblock %}