Skip to content

Commit

Permalink
Update figure.liquid
Browse files Browse the repository at this point in the history
  • Loading branch information
siril-teja committed Nov 27, 2024
1 parent 5e9ba34 commit f27044a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/figure.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@
{% elsif site.lazy_loading_images %}
loading="lazy"
{% endif %}
onerror="this.onerror=null; $('.responsive-img-srcset').remove();"
onerror="this.onerror=null; if(document.querySelector('.responsive-img-srcset')) { document.querySelector('.responsive-img-srcset').remove(); }"
>
</picture>

{% if include.caption %}
<figcaption class="caption">{{ include.caption }}</figcaption>
{% endif %}
</figure>


0 comments on commit f27044a

Please sign in to comment.