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