Commit e96482c5 authored by Jan-Philipp Stauffert's avatar Jan-Philipp Stauffert
Browse files

Try to fix single slide

parent a22bd9a9
...@@ -92,18 +92,18 @@ ...@@ -92,18 +92,18 @@
{% if slides.size > 1 %} {% if slides.size > 1 %}
<div class="slick-element"> <div class="slick-element">
{% for slide in slides %} {% for slide in slides %}
{% if forloop.index == 1 %} {% if forloop.index == 1 %}
{% assign class = "" %} {% assign class = "" %}
{% imgsrcset src="slide" sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %} {% imgsrcset src="slide" sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
{% else %} {% else %}
{% imgsrcset src="slide" class="hide" sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %} {% imgsrcset src="slide" class="hide" sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% elsif slides.size == 1 %} {% elsif slides.size == 1 %}
<div class="single-slide"> <div class="single-slide">
{% imgsrcset src="slides.first" dimension="panorama"%} {% assign first_image = slides.first %}
{% imgsrcset src="first_image" dimension="panorama"%}
</div> </div>
{% endif %} {% endif %}
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment