add /blog to pages

This commit is contained in:
Dávid Lévai 2021-06-20 16:47:56 +02:00 committed by GitHub
parent c741e0894c
commit 8920e8425a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ const siteMetadata = require('../data/siteMetadata')
.replace('.md', '')
.replace('/index.xml', '')
const route = path === '/index' ? '' : path
if (page === `pages/404.js` || page === `pages/[...slug].js`) {
if (page === `pages/404.js` || page === `pages/blog/[...slug].js`) {
return
}
return `