- {% if instance.caption_text or instance.picture.description %}
-
- {% if instance.caption_text %}
- {{ instance.caption_text }}
- {% elif instance.picture.description %}
- {{ instance.picture.description }}{% endif %}
- {% if instance.picture.author %}–{% endif %}
-
- {% endif %}
- {% if instance.picture.author %}{{ instance.picture.author|markdown }}
{% endif %}
-
-
- {% endif %}
- {# end render figure/figcaption #}
- {% comment %}
+ {# start render figure/figcaption #}
+ {% if instance.caption_text or instance.picture.author or instance.picture.description %}
+
+ {% if instance.caption_text or instance.picture.description %}
+
+ {% if instance.caption_text %}
+ {{ instance.caption_text }}
+ {% elif instance.picture.description %}
+ {{ instance.picture.description }}{% endif %}
+ {% if instance.picture.author %}–{% endif %}
+
+ {% endif %}
+ {% if instance.picture.author %}{{ instance.picture.author|markdown }}
{% endif %}
+
+
+ {% endif %}
+ {# end render figure/figcaption #}
+ {% comment %}
# https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
# https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure
# https://github.com/divio/django-filer/blob/master/filer/models/imagemodels.py
@@ -83,4 +83,4 @@
{% for plugin in instance.child_plugin_instances %}
{% render_plugin plugin %}
{% endfor %}
- {% endcomment %}
+ {% endcomment %}