From 109725d2dc56e329c60a876e9ce4094513fd36a5 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 29 Sep 2023 05:25:10 +0800 Subject: [PATCH] fix(home): avoid LQIP dirty data passing to the next post (#1278) --- _layouts/home.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index 720f114..b5b6f7f 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -47,10 +47,6 @@ layout: default {% assign card_body_col = '12' %} {% if post.image %} - {% if post.image.lqip %} - {% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %} - {% endif %} - {% assign src = post.image.path | default: post.image %} {% unless src contains '//' %} {% assign src = post.img_path | append: '/' | append: src | replace: '//', '/' %} @@ -59,7 +55,7 @@ layout: default {% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %}
- {{ alt }} + {{ alt }}
{% assign card_body_col = '7' %}