chore: configurable loading
This commit is contained in:
parent
4108ce86ef
commit
a05666f1c7
4 changed files with 12 additions and 4 deletions
|
@ -20,7 +20,14 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% image item.image, alt, 'rounded-lg w-full h-full [&>*]:h-full' %}
|
||||
{%- capture loadingStrategy %}
|
||||
{% if loading %}
|
||||
{{ loading }}
|
||||
{% else %}
|
||||
'lazy'
|
||||
{% endif %}
|
||||
{% endcapture -%}
|
||||
{% image item.image, alt, 'rounded-lg w-full h-full [&>*]:h-full', loadingStrategy %}
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
|
Reference in a new issue