Open zeekrey opened 4 years ago
Sorry, I missed the graphql query in the config object. I changed it:
markdownRemark: {
postPage: 'src/templates/blogTemplate.js',
query: `
{
allMarkdownRemark {
edges {
node {
frontmatter {
slug,
langKey
}
}
}
}
}
`
}
But still, nothing happens. If I look at the page sitemap, there are no routes for the actual language keys.
I created a new project based on https://github.com/gatsbyjs/gatsby/tree/master/examples/using-markdown-pages
After I added gatsby-plugin-i18n the following errors occurs:
File: node_modules/gatsby-plugin-i18n/createPages.js:46:10
It looks like gatsby-transformer-remark puts custom fields under node.frontmatter. At least there is no node called node.fields. After installing gatsby-plugin-i18n nothing actually happened. I looked into the source code and saw, that getMarkdownPage.js expects a node called node.fields.slug and node.fields.langKey. But at least in the graphql explorer I can't find this data.
Does anybody know how to fix this?