mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +00:00
14 lines
501 B
Twig
14 lines
501 B
Twig
|
{% set showcase_image = page.media.images|first.grayscale().contrast(20).brightness(-125).colorize(-35,81,122) %}
|
||
|
{% if showcase_image %}
|
||
|
<div class="modular-row showcase flush-top" style="background-image: url({{ showcase_image.url }});">
|
||
|
{% else %}
|
||
|
<div class="modular-row showcase">
|
||
|
{% endif %}
|
||
|
{{ content }}
|
||
|
|
||
|
{% for button in page.header.buttons %}
|
||
|
<a class="button{% if button.primary %} primary{% endif %}" href="{{ button.url }}">{{ button.text }}</a>
|
||
|
{% endfor %}
|
||
|
|
||
|
</div>
|