|
|
@ -116,9 +116,10 @@ exports.createPages = async ({graphql, boundActionCreators}) => { |
|
|
|
|
|
|
|
redirect.forEach(fromPath => { |
|
|
|
if (redirectToSlugMap[fromPath] != null) { |
|
|
|
console.error(`Duplicate redirect detected from "${fromPath}" to:\n` + |
|
|
|
console.error( |
|
|
|
`Duplicate redirect detected from "${fromPath}" to:\n` + |
|
|
|
`* ${redirectToSlugMap[fromPath]}\n` + |
|
|
|
`* ${slug}\n` |
|
|
|
`* ${slug}\n`, |
|
|
|
); |
|
|
|
process.exit(1); |
|
|
|
} |
|
|
@ -138,9 +139,9 @@ exports.createPages = async ({graphql, boundActionCreators}) => { |
|
|
|
` |
|
|
|
{ |
|
|
|
allMarkdownRemark( |
|
|
|
limit: 1, |
|
|
|
filter: { id: { regex: "/blog/" } } |
|
|
|
sort: { fields: [fields___date], order: DESC } |
|
|
|
limit: 1 |
|
|
|
filter: {id: {regex: "/blog/"}} |
|
|
|
sort: {fields: [fields___date], order: DESC} |
|
|
|
) { |
|
|
|
edges { |
|
|
|
node { |
|
|
|