mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-10-20 17:53:45 +00:00
fix: resolve discrepancy in lqip between post and main page (#2453)
This commit is contained in:
parent
c706799f9b
commit
1bac96a8e1
@ -55,16 +55,15 @@ refactor: true
|
||||
|
||||
{% if post.image %}
|
||||
{% assign src = post.image.path | default: post.image %}
|
||||
{% unless src contains '//' %}
|
||||
{% assign src = post.media_subpath | append: '/' | append: src | replace: '//', '/' %}
|
||||
{% endunless %}
|
||||
{% capture src %}{% include media-url.html src=src subpath=post.media_subpath %}{% endcapture %}
|
||||
|
||||
{% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %}
|
||||
|
||||
{% assign lqip = null %}
|
||||
|
||||
{% if post.image.lqip %}
|
||||
{% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
|
||||
{% capture lqip_url %}{% include media-url.html src=post.image.lqip subpath=post.media_subpath %}{% endcapture %}
|
||||
{% assign lqip = 'lqip="' | append: lqip_url | append: '"' %}
|
||||
{% endif %}
|
||||
|
||||
<div class="col-md-5">
|
||||
|
Loading…
x
Reference in New Issue
Block a user