tfcconnection-zola/templates/shortcodes/img.html
2025-06-27 09:43:33 -05:00

12 lines
591 B
HTML

{% if not op %} {% set op = "fill" -%} {% endif %}
{% if not height %} {% set height = 450 -%} {% endif %}
{% if not width %} {% set width = 600 -%} {% endif %}
{% if page.colocated_path %}
{% set image = resize_image(path=page.colocated_path ~ path, width=width, height=height, op=op) %}
{% else %}
{% set image = resize_image(path=path, width=width, height=height, op=op) %}
{% endif %}
<div class="w-full flex basis-full place-content-center">
<img class="py-0 rounded-lg shadow-xl data-zoomable object-cover w-[{{width}}px] h-[{{height}}px]"
src="{{ image.url }}" />
</div>