13 lines
548 B
HTML
13 lines
548 B
HTML
{% macro render_services_card(card, index) %}
|
|
{% set card_image = card.record.attachments.images.get(card.card_image) %}
|
|
<div class="services_card {% if index%2 %}-odd{% else %}-even{% endif %}">
|
|
<div class="services_card__image_box">
|
|
<img src="{{ card_image|url }}" alt="" aria-hidden="true">
|
|
</div>
|
|
<div class="services_card__text_box">
|
|
<h2>{{ card.card_title }}</h2>
|
|
{{ card.card_text }}
|
|
</div>
|
|
</div>
|
|
{% endmacro %}
|