Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
feat(MainLayout): add MdxTranslations & mdx homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Dec 13, 2019
1 parent bd899c5 commit f399518
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/components/MainLayout/fragments.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const Fragments = graphql`
}
fragment homepage on Query {
homepage: javascriptFrontmatter(
homepage: mdx(
frontmatter: { lang: { eq: $lang }, layout: { eq: "HomePage" } }
) {
fields {
Expand Down Expand Up @@ -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
}
}
}
}
`

0 comments on commit f399518

Please sign in to comment.