From d29cade78f85d9765ac57f0b4e308509f6b66f53 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 21 Feb 2024 08:48:09 -0800 Subject: [PATCH] chore: filters + cleanup --- src/_includes/partials/now/media-grid.liquid | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/_includes/partials/now/media-grid.liquid b/src/_includes/partials/now/media-grid.liquid index 031cdd62..9dd59043 100644 --- a/src/_includes/partials/now/media-grid.liquid +++ b/src/_includes/partials/now/media-grid.liquid @@ -13,8 +13,8 @@
{% for item in media limit: count %} - {% assign alt = item.alt | strip %} - + {% assign alt = item.alt | strip | escape %} +
{% if item.subtext %}
{% endif %}
@@ -31,11 +31,7 @@ {% endif %}
{%- capture loadingStrategy -%} - {%- if loading -%} - {{ loading }} - {%- else -%} - 'lazy' - {%- endif -%} + {%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%} {%- endcapture -%} {% image item.image, alt, '', loadingStrategy %}