Tweaked the image shortcode.

This commit is contained in:
wermos 2024-06-03 20:27:19 +05:30
parent c54b7daff2
commit 46737b193f
No known key found for this signature in database
GPG key ID: 8CBC132DB3E00784

View file

@ -16,7 +16,7 @@
{{ end }}
{{ with $resource }}
<figure>
{{ if $disableImageOptimization }}
{{ if or $disableImageOptimization (eq .MediaType.SubType "svg") }}
<img
class="my-0 rounded-md"
loading="lazy"