Skip to content

Commit 0f9bcb5

Browse files
committed
fix: resolve discrepancy in lqip between post and main page
1 parent c706799 commit 0f9bcb5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_layouts/home.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@
6464
{% assign lqip = null %}
6565

6666
{% if post.image.lqip %}
67-
{% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
67+
{% assign lqip_url = post.image.lqip %}
68+
{% unless lqip_url contains '//' %}
69+
{% assign lqip_url = post.media_subpath | append: '/' | append: lqip_url | replace: '//', '/' %}
70+
{% endunless %}
71+
72+
{% capture lqip %}lqip="{{ lqip_url }}"{% endcapture %}
6873
{% endif %}
6974

7075
<div class="col-md-5">

0 commit comments

Comments
 (0)