|
|
|
@ -13,12 +13,16 @@
@@ -13,12 +13,16 @@
|
|
|
|
|
{% set cropped = effective_image.height > crop_height and not allow_tall %} |
|
|
|
|
|
|
|
|
|
<figure> |
|
|
|
|
<img src="{% if resize %}{{ effective_image.url }}{% else %}{{ url }}{% endif %}" alt="{{ alt }}" |
|
|
|
|
{%- if cropped %}height="{{ crop_height }}" width="{{article_width}}"{% endif %}> |
|
|
|
|
<img |
|
|
|
|
src="{% if resize %}{{ effective_image.url }}{% else %}/{{ url }}{% endif %}" |
|
|
|
|
alt="{{ alt }}" |
|
|
|
|
title="{{ alt }}" |
|
|
|
|
{%- if cropped %}height="{{ crop_height }}" width="{{article_width}}"{% endif %} |
|
|
|
|
> |
|
|
|
|
{% if caption or resize or cropped %} |
|
|
|
|
<div> |
|
|
|
|
{% if caption %}<figcaption>{{ caption | safe }}</figcaption>{% endif %} |
|
|
|
|
{% if resize or cropped %}<a href="{{ url }}" target="_blank">↗️ full size</a>{% endif %} |
|
|
|
|
{% if resize or cropped %}<a href="/{{ url }}" target="_blank">↗️ full size</a>{% endif %} |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
</figure> |