mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
8 lines
393 B
HTML
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>
|