website/templates/shortcodes/image.html

5 lines
221 B
HTML
Raw Permalink Normal View History

2023-01-06 03:02:54 +00:00
{% set image = resize_image(path=path, width=1024, height=1024, op="fit", format="webp") %}
{% set url = get_url(path=path) %}
<a href="{{ url }}">
<img src="{{ image.url }}"{% if alt %} alt="{{ alt }}"{% endif %} />
</a>