{% if cards %}
{% for card in cards %}
{% with left_side=forloop.counter|divisibleby:2 %} {% if left_side %} {% include 'components/big_cards_text.html' with big_card_group_id=big_card_group_id big_card_text_id=forloop.counter %} {% if card.image %} {% include 'components/big_cards_img.html' with big_card_group_id=big_card_group_id big_card_img_id=forloop.counter %} {% endif %} {% else %} {% if card.image %} {% include 'components/big_cards_img.html' with big_card_group_id=big_card_group_id big_card_img_id=forloop.counter %} {% endif %} {% include 'components/big_cards_text.html' with big_card_group_id=big_card_group_id big_card_text_id=forloop.counter %} {% endif %} {% endwith %}

{% endfor %}
{% endif %}