Skip to content

Commit ec98f07

Browse files
committed
fix: refactoring error when the image URL contains parameters
1 parent e7426ec commit ec98f07

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

_includes/refactor-content.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
{% assign _attrs = _left | split: ' ' %}
7070

7171
{% for _attr in _attrs %}
72-
{% assign _pair = _attr | split: '=' %}
72+
{% assign _pair = _attr | split: '="' %}
7373
{% if _pair.size < 2 %}
7474
{% continue %}
7575
{% endif %}
@@ -93,7 +93,6 @@
9393

9494
{% if _src %}
9595
{% unless _src contains '://' %}
96-
9796
<!-- Add CDN URL -->
9897
{% if site.img_cdn %}
9998
{% if site.img_cdn contains '//' %}
@@ -117,7 +116,6 @@
117116
{% endunless %}
118117

119118
<!-- lazy-load images <https://github.com/ApoorvSaxena/lozad.js#usage> -->
120-
121119
{% assign _left = _left | replace: 'src=', 'data-src=' %}
122120
123121
{% endif %}

0 commit comments

Comments
 (0)