1
0
Fork 0
forked from wezm/wezm.net
wezm.net/v2/templates/shortcodes/figure.html
Wesley Moore 20e7c4e666
Don't use resize_image on the in top post
The resized version is bigger then the original.
2020-03-23 09:12:06 +11:00

8 lines
393 B
HTML

<figure>
{% if width %}
<a href="{{ config.base_url }}/{{ link }}"><img src="{{ resize_image(path=image, width=width, op="fit_width", quality=quality | default(value=75)) }}" alt="{{ alt }}" /></a>
{% else %}
<a href="{{ config.base_url }}/{{ link }}"><img src="{{ config.base_url }}/{{ image }}" alt="{{ alt }}" /></a>
{% endif %}
<figcaption>{{ caption }}</figcaption>
</figure>