From 58c7e1a1e90eac4b8a6670e33bc826051c4dd417 Mon Sep 17 00:00:00 2001 From: Daniel Cho Date: Fri, 12 Jul 2024 12:45:18 -0400 Subject: [PATCH 1/3] fix: update how asl and lsq filters are applied to submissions --- src/_includes/partials/components/submission.njk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/_includes/partials/components/submission.njk b/src/_includes/partials/components/submission.njk index 56cfbce..467fb69 100644 --- a/src/_includes/partials/components/submission.njk +++ b/src/_includes/partials/components/submission.njk @@ -10,7 +10,10 @@ " data-filter-language=" {%- if submission.data.youtube.interpretation -%} - {{ 'asl' if submission.data.youtube.lang === 'en' else 'lsq' }}, + {{ 'asl' if submission.data.youtube.lang === 'en' and submission.data.youtube.signLanguageUrl }}, + {%- endif -%} + {%- if submission.data.youtube.interpretation -%} + {{ 'lsq' if submission.data.youtube.lang === 'fr' and submission.data.youtube.signLanguageUrl }}, {%- endif -%} {%- if submission.data.youtube.lang === 'en' or submission.data.text.en or submission.data.transcript.en or submission.data.slides.en or submission.data.audio.lang === 'en' or submission.data.pdf.en -%} en, From ed3b9ac78675d30d932a536086d164e09fa95d34 Mon Sep 17 00:00:00 2001 From: Daniel Cho Date: Fri, 12 Jul 2024 12:54:53 -0400 Subject: [PATCH 2/3] fix: issue with format for package.json --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 745cb16..2679731 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,6 @@ "lint-staged": { "*.css": "stylelint --fix", "*.{js,cjs,json,jsonc}": "biome check --write --no-errors-on-unmatched", - "*.md": [ - "markdownlint-cli2 --fix" - ] + "*.md": ["markdownlint-cli2 --fix"] } } From eb070111be0fd0b2d8d2029d13ba8a020051704b Mon Sep 17 00:00:00 2001 From: Daniel Cho Date: Thu, 18 Jul 2024 10:35:17 -0400 Subject: [PATCH 3/3] fix: update sign language filter logic --- src/_includes/partials/components/submission.njk | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/_includes/partials/components/submission.njk b/src/_includes/partials/components/submission.njk index 467fb69..830225e 100644 --- a/src/_includes/partials/components/submission.njk +++ b/src/_includes/partials/components/submission.njk @@ -9,11 +9,8 @@ {%- endfor -%} " data-filter-language=" - {%- if submission.data.youtube.interpretation -%} - {{ 'asl' if submission.data.youtube.lang === 'en' and submission.data.youtube.signLanguageUrl }}, - {%- endif -%} - {%- if submission.data.youtube.interpretation -%} - {{ 'lsq' if submission.data.youtube.lang === 'fr' and submission.data.youtube.signLanguageUrl }}, + {%- if submission.data.youtube.signLanguageUrl -%} + {{ 'asl' if submission.data.youtube.lang === 'en' else 'lsq' }}, {%- endif -%} {%- if submission.data.youtube.lang === 'en' or submission.data.text.en or submission.data.transcript.en or submission.data.slides.en or submission.data.audio.lang === 'en' or submission.data.pdf.en -%} en,