{% import "partials/macros.twig" as macros %}

{% block images %}
<div class="container">
    {% if images | length > 1 %}
    <div class="carousel">
        {% for image in images %}
        <a href="{{ image.url }}"
           class="carousel-item">
            {{ macros.variants(image.url, image.preview, image.alt, 200, 50 ) }}
        </a>
        {% endfor %}
    </div>
    {% else %}
    {{ macros.variants(images.0.url, images.0.preview, images.0.alt, 200, 50, "materialboxed" ) }}
    {% endif %}
</div>

{% endblock %}
