This commit is contained in:
tangly1024
2021-10-16 15:30:09 +08:00
parent 3d70843441
commit e023aa98e6

View File

@@ -22,7 +22,7 @@ const BlogPost = ({ post, blockMap, emailHash, tags, prev, next }) => {
}
export async function getStaticPaths () {
if (BLOg.isProd) {
if (BLOG.isProd) {
let posts = await getAllPosts()
posts = posts.filter(post => post.status[0] === 'Published')
return {