adding img shortcode and using it in groups
This commit is contained in:
parent
c32cccf3c3
commit
aa95d2e284
34 changed files with 136 additions and 83 deletions
8
templates/shortcodes/img.html
Normal file
8
templates/shortcodes/img.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue