Locale switcher updates

This commit is contained in:
Henrik Larsson
2023-07-07 12:56:33 +02:00
parent 4327a10dc9
commit 5c2f3d5e3e
5 changed files with 92 additions and 74 deletions

View File

@@ -160,7 +160,7 @@ export const reusableSection = `
`;
// Homepage query
export const homePageQuery = `*[_type == "home" && slug.current == "/" && language == $locale][0] {
export const homePageQuery = `*[_type == "home" && language == $locale][0] {
_type,
title,
"slug": slug.current,