image.html (299B)
1 <picture> 2 {% for source in sources -%} 3 {% set type = source | split(pat=".") | last -%} 4 <source srcset="{{ config.base_url | safe}}{{ page.path | safe }}{{ source | safe }}" type="{{ 'img/' ~ type }}"> 5 {% endfor -%} 6 <img src="{{ fallback_path }}" alt="{{ fallback_alt }}"/> 7 </picture>