mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 01:05:58 +02:00
feat(404): add collections 404 page to tech spotlights
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
a796facdb1
commit
849bd0be02
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user