fix picture tags having an extra comma in their srcset
This commit is contained in:
parent
0cb94cfa01
commit
fc25e6ca7b
|
@ -8,7 +8,8 @@
|
||||||
{%- for format in formats %}
|
{%- for format in formats %}
|
||||||
<source type='image/{{format}}' sizes='{{sizes}}' srcset="
|
<source type='image/{{format}}' sizes='{{sizes}}' srcset="
|
||||||
{%- for width in widths -%}
|
{%- for width in widths -%}
|
||||||
{{ st('{}-{}.{}'.format(basename, width, format)) }} {{width}}w,
|
{{ st('{}-{}.{}'.format(basename, width, format)) }} {{width}}w
|
||||||
|
{%- if not loop.last %},{% endif %}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
"/>
|
"/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue