+ :
{children}
}
diff --git a/lib/cache/local_file_cache.js b/lib/cache/local_file_cache.js
index 386eb28d..482b7bb5 100644
--- a/lib/cache/local_file_cache.js
+++ b/lib/cache/local_file_cache.js
@@ -1,5 +1,4 @@
import fs from 'fs'
-import BLOG from '@/blog.config'
const path = require('path')
// 文件缓存持续10秒
diff --git a/lib/notion/getAllPageIds.js b/lib/notion/getAllPageIds.js
index 7673889c..6821925e 100644
--- a/lib/notion/getAllPageIds.js
+++ b/lib/notion/getAllPageIds.js
@@ -1,6 +1,9 @@
import { idToUuid } from 'notion-utils'
export default function getAllPageIds (collectionQuery, viewId) {
+ if (!collectionQuery) {
+ return []
+ }
const views = Object.values(collectionQuery)[0]
if (!views) {
return []
diff --git a/pages/tag/[tag].js b/pages/tag/[tag].js
index 2e607fa0..18f5a55d 100644
--- a/pages/tag/[tag].js
+++ b/pages/tag/[tag].js
@@ -29,7 +29,7 @@ export async function getStaticProps ({ params }) {
const allPosts = await getAllPosts({ notionPageData, from })
const categories = await getAllCategories(allPosts)
const tagOptions = notionPageData.tagOptions
- const tags = await getAllTags({ allPosts, tagOptions })
+ const tags = await getAllTags({ allPosts, tagOptions, sliceCount: 0 })
const filteredPosts = allPosts.filter(
post => post && post.tags && post.tags.includes(currentTag)
)