{% if section.background %}
{% endif %}
{% for line in section.images %}
{% for image in line %} {% set caption = image.text %} {% if image.type == "video" %} {% set video = Video.get(link, image) %} {% set format = settings.ffmpeg.extension %} {% set vid = video.reencode((1280, 720)) %} {% set ratio = video.ratio %} {% else %} {% set image = Image.get(link, image) %} {% set ratio = image.ratio %} {% endif %}
{% if image.type == "video" %} {% if caption %}
{{ caption }}
{% endif %} {% else %} {% if caption %}
{{ caption }}
{% endif %}
{% endif %}
{% if not loop.last %}
{% endif %} {% endfor %}
{% endfor %}
{% if section.background %}
{% endif %}