From c94197befda1659a4d03aa74cec7e816a05b58be Mon Sep 17 00:00:00 2001 From: Paul Greveson Date: Wed, 26 Jul 2023 23:19:03 +0200 Subject: [PATCH] Don't add an empty class tag if there's no class specified on the image --- templates/shortcodes/img.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html index 810dd65..8e22ea7 100644 --- a/templates/shortcodes/img.html +++ b/templates/shortcodes/img.html @@ -37,6 +37,6 @@ {% endif %} {% endif %}
- + {% if caption %}
{{ caption | safe }}
{% endif %}