File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 44
44
{% for post in posts %}
45
45
< a href ="{{ post.url | relative_url }} " class ="card-wrapper ">
46
46
< div class ="card post-preview flex-md-row-reverse ">
47
+ {% if post.image %}
48
+ {% if post.image.lqip %}
49
+ {% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
50
+ {% endif %}
51
+
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
+ {% endif %}
47
61
48
62
< div class ="card-body d-flex flex-column ">
49
63
< h1 class ="card-title my-2 mt-md-0 ">
You can’t perform that action at this time.
0 commit comments