{% if include.object.items %} {% assign carousel_items = include.object.items %} {% elsif include.object.data_source %} {% assign carousel_items = site.data[include.object.source] %} {% endif %} {% for item in carousel_items %} {% if include.object.lightbox_enabled %}{% endif %}
{% if item.image %} {% capture image_path %}{{item.image}}{% endcapture %} {% capture image_alt %}Slider block image {{forloop.index}}{% endcapture %} {% picture slider_block_image {{image_path}} --alt {{image_alt}} %} {% endif %}
{% if include.object.lightbox_enabled %}
{% endif %} {% endfor %}