Open muuvmuuv opened 4 years ago
This returns the correct mdx in graphiql query when doing allSitePages
:
createTypes(`
type SitePageContext implements Node {
frontmatter: MdxFrontmatter
}
type MdxFrontmatter {
title: String @mdx
}
`)
but still not in my default template :D
I am happy someone else also had this problem. For blog posts with
gatsby-source-filesystem
this is working great but not for mdx pages insidesrc/pages
.With the graphiql GUI I can see the parsed MDX frontmatter but somehow it is not passed to
pageCOntext
in my default template.