hero.html.twig 823 B

12345678910111213141516171819202122
  1. <section id="{{ id }}" class="section modular-hero hero {{ page.header.hero_classes }} {{ page.header.background.parallax ? 'parallax' : '' }}" {% if hero_image %}style="background-image: url('{{ hero_image.url }}');"{% endif %}>
  2. {% for item in page.collection %}
  3. <li>
  4. <a href="{{ item.url }}" class="{{ active_page }}">
  5. {{ item.menu }}
  6. </a>
  7. </li>
  8. {% endfor %}
  9. <h1>{{page.title}}</h1>
  10. <section class="container {{ grid_size }}" style="text-align: {{ page.header.hero_align|default('center') }}">
  11. {% for images in child.media.images %}
  12. <div>
  13. {{images.derivatives(320,1600,300).sizes('(max-width:26em) 100vw, 50vw').html(page.title, 'images about')}}
  14. </div>
  15. {% endfor %}
  16. {{ child.content|raw }}
  17. </section>
  18. </section>