{% assign rows = include.src | split: ':' %} {% capture path %}/images/{{page.path | split: '/' | last | split: '.' | first }}{% endcapture %} {% capture alt %}{{ include.caption | markdownify | strip_html }} {{ include.alt }}{% endcapture %} {% for row in rows %} {% assign imgs = row | split: ' ' %} {% if imgs.size == 1 %}
{% else %}
{% endif %} {% for img in imgs %} {% capture src %}{{ path }}/{{ img }}{% endcapture %} {% include image.html src=src alt=alt %} {% endfor %}
{% endfor %} {% if include.caption %}
{{ include.caption | markdownify | remove: '

' | remove: '

' }}
{% endif %}