diff --git a/src/components/MainLayout/fragments.js b/src/components/MainLayout/fragments.js index f9a0ed0..63ae95e 100644 --- a/src/components/MainLayout/fragments.js +++ b/src/components/MainLayout/fragments.js @@ -126,7 +126,7 @@ export const Fragments = graphql` } fragment homepage on Query { - homepage: javascriptFrontmatter( + homepage: mdx( frontmatter: { lang: { eq: $lang }, layout: { eq: "HomePage" } } ) { fields { @@ -181,4 +181,24 @@ export const Fragments = graphql` } } } + + fragment MdxTranslations on Mdx { + fields { + translations { + id + lc + title + titleShort + to + fields { + url + } + frontmatter { + title + lang + slug + } + } + } + } `