Skip to content

Commit ee88cec

Browse files
committed
fix: parameter parsing error in image URL (cotes2020#1022)
1 parent 8da583d commit ee88cec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

_includes/refactor-content.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
{% continue %}
9595
{% endunless %}
9696

97-
{% assign _pair = _attr | remove: '"' | split: '=' %}
97+
{% assign _pair = _attr | split: '="' %}
9898
{% capture _key %}{{ _pair | first }}{% endcapture %}
99-
{% capture _value %}{{ _pair | last }}{% endcapture %}
99+
{% capture _value %}{{ _pair | last | remove: '"' }}{% endcapture %}
100100

101101
{% case _key %}
102102
{% when 'width' %}
@@ -110,7 +110,6 @@
110110
{% when 'class' %}
111111
{% assign _class = _value %}
112112
{% endcase %}
113-
114113
{% endfor %}
115114

116115
<!-- take out classes -->

0 commit comments

Comments
 (0)