fix hexo\matery主题博客列表问题

This commit is contained in:
tangly1024.com
2023-04-26 11:50:17 +08:00
parent 08a91b3dfe
commit 490497f9ac

View File

@@ -242,7 +242,7 @@ async function getDataBaseInfoByNotionAPI({ pageId, from }) {
let postCount = 0
// 查找所有的Post和Page
const allPages = collectionData.filter(post => {
if (post.type === BLOG.NOTION_PROPERTY_NAME.type_post && post.status === BLOG.NOTION_PROPERTY_NAME.status_publish) {
if (post.type === 'Post' && post.status === 'Published') {
postCount++
}
return post && post?.slug &&