fix: parameter parsing error in image URL (#1022)

This commit is contained in:
Cotes Chung 2023-05-13 01:02:15 +08:00
parent 8da583d403
commit ee88cec270
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -94,9 +94,9 @@
{% continue %} {% continue %}
{% endunless %} {% endunless %}
{% assign _pair = _attr | remove: '"' | split: '=' %} {% assign _pair = _attr | split: '="' %}
{% capture _key %}{{ _pair | first }}{% endcapture %} {% capture _key %}{{ _pair | first }}{% endcapture %}
{% capture _value %}{{ _pair | last }}{% endcapture %} {% capture _value %}{{ _pair | last | remove: '"' }}{% endcapture %}
{% case _key %} {% case _key %}
{% when 'width' %} {% when 'width' %}
@ -110,7 +110,6 @@
{% when 'class' %} {% when 'class' %}
{% assign _class = _value %} {% assign _class = _value %}
{% endcase %} {% endcase %}
{% endfor %} {% endfor %}
<!-- take out classes --> <!-- take out classes -->