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

14 lines
529 B
HTML
Raw Normal View History

2021-10-08 22:57:04 +00:00
<figure class="text-center">
<a href="{{ config.base_url }}/{{ link }}">
{% if resize_width %}
{% set image = resize_image(path=image, width=resize_width, op="fit_width", quality=quality | default(value=75)) %}
<img src="{{ image.url }}" alt="{{ alt }}" />
{% elif width %}
<img src="{{ config.base_url }}/{{ image }}" width="{{ width }}" alt="{{ alt }}" />
{% else %}
2021-10-08 22:57:04 +00:00
<img src="{{ config.base_url }}/{{ image }}" alt="{{ alt }}" />
{% endif %}
2021-10-08 22:57:04 +00:00
</a>
2020-03-21 03:51:11 +00:00
<figcaption>{{ caption }}</figcaption>
</figure>