微调
This commit is contained in:
tangly1024
2021-12-14 12:06:27 +08:00
parent 8148105b92
commit f1724dbe1a
5 changed files with 6 additions and 4 deletions

View File

@@ -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)
)