From aba9468b5332802db961166889d4c4a84e404a2c Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Thu, 18 May 2023 05:57:20 +0800
Subject: [PATCH 1/6] fix(home): preview image missing `[alt]` and `img_path`
(#1044)
Close #1044
---
_layouts/home.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/_layouts/home.html b/_layouts/home.html
index d1be9c3..a5324a6 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -48,7 +48,15 @@ refactor: true
{% 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: '//', '/' %}
+ {% endunless %}
+
+ {% assign alt = post.image.alt | default: 'Preview Image' %}
+
+
{% endif %}
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 2/6] 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: '>
From eb40f51c84b011a7c301279527f544ad27efd5eb Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Thu, 18 May 2023 11:09:32 +0800
Subject: [PATCH 3/6] fix(layout): restore the margin bottom of the main area
(#1047)
---
_includes/post-paginator.html | 2 +-
_layouts/page.html | 8 ++++++--
_sass/addon/commons.scss | 4 ----
_sass/layout/home.scss | 4 ----
4 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/_includes/post-paginator.html b/_includes/post-paginator.html
index 9a792d2..668b49f 100644
--- a/_includes/post-paginator.html
+++ b/_includes/post-paginator.html
@@ -1,6 +1,6 @@
-