text.html.twig 767 B

1234567891011121314151617181920212223
  1. {% set grid_size = theme_var('grid-size') %}
  2. {% set image = page.media.images|first %}
  3. <section class="section modular-text {{ page.header.class}} bg-gray">
  4. <section class="container {{ grid_size }}">
  5. <div class="columns {{ page.header.image_align|default('align-right') }}">
  6. {% if image %}
  7. <div class="column col-6 col-md-12">
  8. {{ content|raw }}
  9. </div>
  10. <div class="column col-6 col-md-12">
  11. {% if image %}
  12. {{ image.html|raw }}
  13. {% endif %}
  14. </div>
  15. {% else %}
  16. <div class="column col-12">
  17. {{ content|raw }}
  18. </div>
  19. {% endif %}
  20. </div>
  21. </section>
  22. </section>