showcase.html.twig 561 B

12345678910111213
  1. {% set showcase_image = page.media.images|first.grayscale().contrast(20).brightness(-125).colorize(-35,81,122) %}
  2. {% if showcase_image %}
  3. <div class="modular-row showcase{% if page == page.parent.collection.first %} flush-top{% endif %}" style="background-image: url({{ showcase_image.url }});">
  4. {% else %}
  5. <div class="modular-row showcase">
  6. {% endif %}
  7. {{ content|raw }}
  8. {% for button in page.header.buttons %}
  9. <a class="button{% if button.primary %} primary{% endif %}" href="{{ button.url }}">{{ button.text }}</a>
  10. {% endfor %}
  11. </div>