{% load wagtailimages_tags %} {% if self.link.url %}{% endif %}
{% if self.link.url %} {% image self.image max-600x600 class="figure-img img-thumbnail" %} {% elif self.expandable %} {% image self.image original as original_image%} {% image self.image max-600x600 class="figure-img img-fluid lightbox-trigger" %} {% else %} {% image self.image max-600x600 class="figure-img img-fluid" %} {% endif %} {% if self.caption %}
{{ self.caption }}
{% endif %}
{% if self.link.url %}{% endif %}