We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3b0163 commit 109725dCopy full SHA for 109725d
_layouts/home.html
@@ -47,10 +47,6 @@
47
{% assign card_body_col = '12' %}
48
49
{% if post.image %}
50
- {% if post.image.lqip %}
51
- {% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
52
- {% endif %}
53
-
54
{% assign src = post.image.path | default: post.image %}
55
{% unless src contains '//' %}
56
{% assign src = post.img_path | append: '/' | append: src | replace: '//', '/' %}
@@ -59,7 +55,7 @@
59
{% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %}
60
61
57
<div class="col-md-5">
62
- <img src="{{ src }}" alt="{{ alt }}" {{ lqip }}>
58
+ <img src="{{ src }}" alt="{{ alt }}" {% if post.image.lqip %}lqip="{{ post.image.lqip }}"{% endif %}>
63
</div>
64
65
{% assign card_body_col = '7' %}
0 commit comments