chore: filters + cleanup

This commit is contained in:
Cory Dransfeldt 2024-02-21 08:48:09 -08:00
parent eb3c2c1c12
commit d29cade78f
No known key found for this signature in database

View file

@ -13,8 +13,8 @@
</h2>
<div class="media__grid {% if shape == 'square' %}square{% else %}vertical{% endif %}">
{% for item in media limit: count %}
{% assign alt = item.alt | strip %}
<a href="{{ item.url | stripUtm }}" title="{{ alt | escape }}">
{% assign alt = item.alt | strip | escape %}
<a href="{{ item.url | stripUtm }}" title="{{ alt }}">
<div class="item__wrapper">
{% if item.subtext %}<div class="item__cover"></div>{% endif %}
<div class="item__meta-text">
@ -31,11 +31,7 @@
{% endif %}
</div>
{%- capture loadingStrategy -%}
{%- if loading -%}
{{ loading }}
{%- else -%}
'lazy'
{%- endif -%}
{%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%}
{%- endcapture -%}
{% image item.image, alt, '', loadingStrategy %}
</div>