diff --git a/_layouts/home.html b/_layouts/home.html index d1be9c3..a5324a6 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -48,7 +48,15 @@ refactor: true {% if post.image.lqip %} {% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %} {% endif %} - + + {% assign src = post.image.path | default: post.image %} + {% unless src contains '//' %} + {% assign src = post.img_path | append: '/' | append: src | replace: '//', '/' %} + {% endunless %} + + {% assign alt = post.image.alt | default: 'Preview Image' %} + + {{ alt }} {% endif %}