feat(404): add collections 404 page to tech spotlights

This commit is contained in:
Khinshan Khan
2020-01-26 12:33:31 -05:00
committed by Jean-Philippe Sirois
parent a796facdb1
commit 849bd0be02
3 changed files with 38 additions and 2 deletions
+4
View File
@@ -170,6 +170,10 @@ exports.onCreatePage = async ({ page, actions }) => {
const oldPage = { ...page }
page.matchPath = `/resources/*`
deletePage(oldPage)
} else if (page.path.match(/^\/archives\/404/)) {
const oldPage = { ...page }
page.matchPath = `/archives/*`
deletePage(oldPage)
} else {
page.context.layout = resolveLayout(page.path)
}