wezm.net/v2/templates/shortcodes/figure.html

9 lines
393 B
HTML
Raw Normal View History

2020-03-21 03:51:11 +00:00
<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 %}
2020-03-21 03:51:11 +00:00
<figcaption>{{ caption }}</figcaption>
</figure>