<figure class=“image”>
{% assign largest = resized | sort: 'width' | last %} {% capture srcset %} {% for i in resized %} /{{ i.path }} {{ i.width }}w, {% endfor %} {% endcapture %} <img src="/{{ largest.path }}" alt="{{ alt }}" srcset="{{ srcset | strip_newlines }} /{{ path }} {{ original.width }}w" sizes="50vw"> <figcaption>{{ alt }}</figcaption>
</figure>