yg_app-8.x-1.0/templates/block/block--system-branding-block.html.twig
templates/block/block--system-branding-block.html.twig
{% extends "block.html.twig" %}
{#
/**
* @file
* Bootstrap Business's theme implementation 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.
*/
#}
{% set attributes = attributes.addClass('site-branding') %}
{% block content %}
<a class="navbar-brand" href="{{ url('<front>') }}">
{% if site_name %}
{{ site_name }}
{% else %}
<img src="{{ site_logo}}" alt="{{site_name}}" class="img-fluid" title="{{site_name}}">
{% endif %}
</a>
{% endblock %}