From dc0e780116c048d88ed14f2bdcdd4d17ceda488b Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Sun, 8 Sep 2024 05:32:44 +0400 Subject: [PATCH] Refactor codebase --- src/components/ui/LanguagePicker.astro | 2 +- src/content/products/en/{a765.md => item-a765.md} | 0 src/content/products/en/{b203.md => item-b203.md} | 0 src/content/products/en/{f303.md => item-f303.md} | 0 src/content/products/en/{t845.md => item-t845.md} | 0 src/content/products/fr/{a765.md => item-a765.md} | 0 src/content/products/fr/{b203.md => item-b203.md} | 0 src/content/products/fr/{f303.md => item-f303.md} | 0 src/content/products/fr/{t845.md => item-t845.md} | 0 9 files changed, 1 insertion(+), 1 deletion(-) rename src/content/products/en/{a765.md => item-a765.md} (100%) rename src/content/products/en/{b203.md => item-b203.md} (100%) rename src/content/products/en/{f303.md => item-f303.md} (100%) rename src/content/products/en/{t845.md => item-t845.md} (100%) rename src/content/products/fr/{a765.md => item-a765.md} (100%) rename src/content/products/fr/{b203.md => item-b203.md} (100%) rename src/content/products/fr/{f303.md => item-f303.md} (100%) rename src/content/products/fr/{t845.md => item-t845.md} (100%) diff --git a/src/components/ui/LanguagePicker.astro b/src/components/ui/LanguagePicker.astro index b50c20c..ed22dd0 100644 --- a/src/components/ui/LanguagePicker.astro +++ b/src/components/ui/LanguagePicker.astro @@ -77,7 +77,7 @@ import Icon from "./icons/Icon.astro"; if ( url.pathname.includes("/post") || url.pathname.includes("/insight") || - url.pathname.includes("/products") + url.pathname.includes("/item") ) { if (url.pathname.includes("en")) { pathParts.unshift(lang); diff --git a/src/content/products/en/a765.md b/src/content/products/en/item-a765.md similarity index 100% rename from src/content/products/en/a765.md rename to src/content/products/en/item-a765.md diff --git a/src/content/products/en/b203.md b/src/content/products/en/item-b203.md similarity index 100% rename from src/content/products/en/b203.md rename to src/content/products/en/item-b203.md diff --git a/src/content/products/en/f303.md b/src/content/products/en/item-f303.md similarity index 100% rename from src/content/products/en/f303.md rename to src/content/products/en/item-f303.md diff --git a/src/content/products/en/t845.md b/src/content/products/en/item-t845.md similarity index 100% rename from src/content/products/en/t845.md rename to src/content/products/en/item-t845.md diff --git a/src/content/products/fr/a765.md b/src/content/products/fr/item-a765.md similarity index 100% rename from src/content/products/fr/a765.md rename to src/content/products/fr/item-a765.md diff --git a/src/content/products/fr/b203.md b/src/content/products/fr/item-b203.md similarity index 100% rename from src/content/products/fr/b203.md rename to src/content/products/fr/item-b203.md diff --git a/src/content/products/fr/f303.md b/src/content/products/fr/item-f303.md similarity index 100% rename from src/content/products/fr/f303.md rename to src/content/products/fr/item-f303.md diff --git a/src/content/products/fr/t845.md b/src/content/products/fr/item-t845.md similarity index 100% rename from src/content/products/fr/t845.md rename to src/content/products/fr/item-t845.md