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