adding img shortcode and using it in groups

This commit is contained in:
Chris Cochrun 2025-05-21 23:39:55 -05:00
parent c32cccf3c3
commit aa95d2e284
34 changed files with 136 additions and 83 deletions

View file

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