We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
[alt]
img_path
1 parent de6ec65 commit aba9468Copy full SHA for aba9468
_layouts/home.html
@@ -48,7 +48,15 @@
48
{% if post.image.lqip %}
49
{% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
50
{% endif %}
51
- <img src="{{ post.image.path | default: post.image }}" w="15" h="8" {{ lqip }}>
+
52
+ {% assign src = post.image.path | default: post.image %}
53
+ {% unless src contains '//' %}
54
+ {% assign src = post.img_path | append: '/' | append: src | replace: '//', '/' %}
55
+ {% endunless %}
56
57
+ {% assign alt = post.image.alt | default: 'Preview Image' %}
58
59
+ <img src="{{ src }}" w="15" h="8" alt="{{ alt }}" {{ lqip }}>
60
61
62
<div class="card-body d-flex flex-column">
0 commit comments