{% macro card(product) %}
{{ product.title.ru }} {{ product.title.ru | length > 35 ? product.title.ru | slice(0, 35) ~ '...' : product.title.ru }}
{% endmacro %} {% if products is not empty %}
{% for product in products %} {% if loop.index0 % 3 == 0 %} {{ _self.card(product) }} {% endif %} {% endfor %}
{% for product in products %} {% if loop.index0 % 3 == 1 %} {{ _self.card(product) }} {% endif %} {% endfor %}
{% for product in products %} {% if loop.index0 % 3 == 2 %} {{ _self.card(product) }} {% endif %} {% endfor %}
{% endif %}