website/templates/shortcodes/image.html
2023-01-06 03:04:10 +00:00

5 lines
221 B
HTML

{% 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>