Skip to content

Commit 16b6edc

Browse files
committed
Revert "fix: resolve discrepancy in lqip between post and main page (cotes2020#2453)"
This reverts commit 1bac96a.
1 parent ff1f0f5 commit 16b6edc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_layouts/home.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,16 @@
5555

5656
{% if post.image %}
5757
{% assign src = post.image.path | default: post.image %}
58-
{% capture src %}{% include media-url.html src=src subpath=post.media_subpath %}{% endcapture %}
58+
{% unless src contains '//' %}
59+
{% assign src = post.media_subpath | append: '/' | append: src | replace: '//', '/' %}
60+
{% endunless %}
5961

6062
{% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %}
6163

6264
{% assign lqip = null %}
6365

6466
{% if post.image.lqip %}
65-
{% capture lqip_url %}{% include media-url.html src=post.image.lqip subpath=post.media_subpath %}{% endcapture %}
66-
{% assign lqip = 'lqip="' | append: lqip_url | append: '"' %}
67+
{% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
6768
{% endif %}
6869

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

0 commit comments

Comments
 (0)