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
1 changed files with 2 additions and 3 deletions

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 -->