From 3bd881da70d685d10659f47bfe0e79cd02e7af92 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 18 May 2023 10:58:23 +0800 Subject: [PATCH] fix(post, page): image link loses shimmer effect (#1046) --- _includes/refactor-content.html | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html index 5281992..655ecd6 100644 --- a/_includes/refactor-content.html +++ b/_includes/refactor-content.html @@ -1,6 +1,4 @@ - + {% assign _content = include.content %} @@ -44,9 +42,9 @@ {% endif %} +{% assign IMG_TAG = ' {% assign _left = _left | append: ' data-proofer-ignore' %} - {% if page.layout == 'post' %} + {% if page.layout == 'home' %} + + {%- capture _wrapper_start -%} +
+ {%- endcapture -%} + {% assign _img_content = _img_content | append: _wrapper_start %} + {% assign _right = _right | prepend: '>` is wrapped by `` --> {% assign _parent = _right | slice: 1, 4 %} @@ -179,16 +185,6 @@ {% assign _img_content = _img_content | append: _wrapper_start %} {% assign _right = _right | prepend: '> - {%- capture _wrapper_start -%} -
- {%- endcapture -%} - {% assign _img_content = _img_content | append: _wrapper_start %} - {% assign _right = _right | prepend: '>