1 {% extends "block.html.twig" %}
5 * Bartik's theme implementation for a branding block.
7 * Each branding element variable (logo, name, slogan) is only available if
8 * enabled in the block configuration.
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.
16 {% set attributes = attributes.addClass('site-branding') %}
19 <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home" class="site-branding__logo">
20 <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
23 {% if site_name or site_slogan %}
24 <div class="site-branding__text">
26 <div class="site-branding__name">
27 <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
31 <div class="site-branding__slogan">{{ site_slogan }}</div>