fix picture tags having an extra comma in their srcset

This commit is contained in:
codl 2019-02-23 23:35:20 +01:00
parent 0cb94cfa01
commit fc25e6ca7b
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@
{%- for format in formats %}
<source type='image/{{format}}' sizes='{{sizes}}' srcset="
{%- 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 %}