2016-04-09 09:33:48 +02:00
{% if section.background %}
2017-04-27 17:59:46 +02:00
< div class = "bg-section" style = "background: {{ section.background }};" >
{% endif %}
< section class = "container pictures-group baguette" >
{% for line in section.images %}
< div class = "pictures-line" >
{% for image in line %}
2019-05-05 20:43:39 +02:00
{% set caption = image.text %}
{% if image.type == "video" %}
{% set video = Video(image) %}
{% set format = settings.ffmpeg.extension %}
{{ video.copy() }}
{% set ratio = video.ratio %}
{% else %}
{% set image = Image(image) %}
{{ image.copy() }}
{% set ratio = image.ratio %}
{% endif %}
< div class = "picture caption" style = "flex-grow: {{ ratio }}" >
2017-04-27 17:59:46 +02:00
{% if image.type == "video" %}
< img class = "z-depth-2 lazy responsive-img" data-original = "{{ video.generate_thumbnail(" 600 " ) } } " src = "" alt = "" >
2017-06-04 21:54:04 +02:00
< video class = "lazy responsive-video" id = "{{ video }}" onclick = "goFullscreen('{{ video }}');" poster = "{{ video.generate_thumbnail(" 600 " ) } } " alt = "" autoplay = "autoplay" loop = "loop" preload = "auto" muted >
2017-04-27 17:59:46 +02:00
< source src = "{{ video }}.{{ format }}" type = "video/{{ format }}" >
< / video >
{% if caption %}
< div class = "caption__overlay" >
< h5 class = "caption__overlay__title" > {{ caption }}< / h5 >
< / div >
{% endif %}
{% else %}
< a href = "{{ image }}" { % if caption % } data-caption = "{{ caption }}" { % endif % }
data-at-450="{{ image.generate_thumbnail("x450") }}"
data-at-800="{{ image.generate_thumbnail("x800") }}"
data-at-1366="{{ image.generate_thumbnail("x1366") }}"
data-at-1920="{{ image.generate_thumbnail("x1920") }}"
>
< img class = "lazy responsive-img z-depth-2" src = "" data-original = "{{ image.generate_thumbnail(" x600 " ) } } " alt = "" >
{% if caption %}
< div class = "caption__overlay" >
< h5 class = "caption__overlay__title" > {{ caption }}< / h5 >
< / div >
{% endif %}
< / a >
{% endif %}
< / div >
{% if not loop.last %}
< div class = "separator" > < / div >
{% endif %}
{% endfor %}
2016-02-21 22:09:59 +01:00
< / div >
2017-04-27 17:59:46 +02:00
{% endfor %}
< / section >
{% if section.background %}
2016-04-09 09:33:48 +02:00
< / div >
{% endif %}