Merge pull request #143 from timlrx/fix/sitemap

fix: restrict sitemap to mdx files in blog folder
This commit is contained in:
Timothy 2021-07-22 08:46:57 +08:00 committed by GitHub
commit 3e67807e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,8 @@ const siteMetadata = require('../data/siteMetadata')
const prettierConfig = await prettier.resolveConfig('./.prettierrc.js')
const pages = await globby([
'pages/*.js',
'data/**/*.mdx',
'data/**/*.md',
'data/blog/**/*.mdx',
'data/blog/**/*.md',
'public/tags/**/*.xml',
'!pages/_*.js',
'!pages/api',