From ec98f07aca0b80a9c07fbcdc8e0d7d66dba98ed2 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 8 Dec 2022 00:40:12 +0800 Subject: [PATCH] fix: refactoring error when the image URL contains parameters --- _includes/refactor-content.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html index 6535e91..d2e27b3 100644 --- a/_includes/refactor-content.html +++ b/_includes/refactor-content.html @@ -69,7 +69,7 @@ {% assign _attrs = _left | split: ' ' %} {% for _attr in _attrs %} - {% assign _pair = _attr | split: '=' %} + {% assign _pair = _attr | split: '="' %} {% if _pair.size < 2 %} {% continue %} {% endif %} @@ -93,7 +93,6 @@ {% if _src %} {% unless _src contains '://' %} - {% if site.img_cdn %} {% if site.img_cdn contains '//' %} @@ -117,7 +116,6 @@ {% endunless %} - {% assign _left = _left | replace: 'src=', 'data-src=' %} {% endif %}