Add full blogging functionality

This commit is contained in:
Kevin Kandlbinder 2021-11-06 23:32:57 +00:00 committed by GitHub
parent bb7486635c
commit c8e8351b43
14 changed files with 557 additions and 178 deletions

View file

@ -69,8 +69,8 @@ module.exports = {
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/scambox`,
name: `scamboxContent`,
path: `${__dirname}/content/blog`,
name: `blogContent`,
},
},
"gatsby-plugin-mdx",
@ -128,8 +128,8 @@ module.exports = {
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
keySeparator: false,
nsSeparator: false,
keySeparator: ".",
nsSeparator: ":",
},
pages: [
{
@ -137,8 +137,14 @@ module.exports = {
getLanguageFromPath: true,
excludeLanguages: extConfig.languages,
},
{
matchPath: "/:lang/blog/:urlname*",
getLanguageFromPath: true,
excludeLanguages: extConfig.languages,
},
],
},
},
`gatsby-plugin-netlify`,
],
};