{% load wagtailcore_tags %}
{% if value.grouping_style == 'grouped' %}
{% comment "" %}Number of cards per row is regulated by Bootstrap, horizontal orientation not possible.{% endcomment %} {% for card in value.items %} {% include_block card with orientation_style='vertical' height_style=value.height_style %} {% endfor %}
{% else %} {% comment %}cards are displayed separately.{% endcomment %}
{% for card in value.items %}
{% include_block card with orientation_style=value.orientation_style height_style=value.height_style %}
{% endfor %}
{% endif %}