|
|
@ -13,12 +13,16 @@ |
|
|
|
{% set cropped = effective_image.height > crop_height and not allow_tall %} |
|
|
|
{% set cropped = effective_image.height > crop_height and not allow_tall %} |
|
|
|
|
|
|
|
|
|
|
|
<figure> |
|
|
|
<figure> |
|
|
|
<img src="{% if resize %}{{ effective_image.url }}{% else %}{{ url }}{% endif %}" alt="{{ alt }}" |
|
|
|
<img |
|
|
|
{%- if cropped %}height="{{ crop_height }}" width="{{article_width}}"{% endif %}> |
|
|
|
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 %} |
|
|
|
{% if caption or resize or cropped %} |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
{% if caption %}<figcaption>{{ caption | safe }}</figcaption>{% endif %} |
|
|
|
{% 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> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</figure> |
|
|
|
</figure> |