From a3a08afd50335af722c589b23ee90303dcf732cc Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 17 May 2024 14:53:26 -0700 Subject: [PATCH] fix: duplicative alt --- config/filters/index.js | 1 - src/_includes/partials/now/media-grid.liquid | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/filters/index.js b/config/filters/index.js index ef1a3494..60d4664c 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -205,7 +205,6 @@ export default { normalized['subtext'] = item['rating'] } if (item.type === 'book') { - normalized['alt'] = `${item['title']} by ${item['authors']}` normalized['title'] = `${item['title']} by ${item['authors']}` normalized['rating'] = item['rating'] if (item['rating']) normalized['subtext'] = item['rating'] diff --git a/src/_includes/partials/now/media-grid.liquid b/src/_includes/partials/now/media-grid.liquid index 99e337ed..528c07ed 100644 --- a/src/_includes/partials/now/media-grid.liquid +++ b/src/_includes/partials/now/media-grid.liquid @@ -19,9 +19,9 @@ {%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%} {%- endcapture -%} {% if shape == 'square' %} - {{ alt }} + {% else %} - {{ alt }} + {% endif %}