templates/Includes/hero.html.twig line 1

Open in your IDE?
  1. {% set alt = alt|default('') %}
  2. {% if image is defined %}
  3.     <div class="hero">
  4.         <figure class="hero__image embed-responsive hero__embed">
  5.             {% if image %}
  6.                 {{ image.thumbnail('hero').html({
  7.                     imgAttributes: {
  8.                         'class': 'embed-responsive-item'
  9.                     },
  10.                     'alt': alt,
  11.                     'lowQualityPlaceholder': true
  12.                 })|raw }}
  13.                 {{ image.thumbnail('hero').html({
  14.                     imgAttributes: {
  15.                         'class': 'embed-responsive-item'
  16.                     },
  17.                     'alt': alt
  18.                 })|raw }}
  19.             {% endif %}
  20.         </figure>
  21.     </div>
  22. {% endif %}