fix-build

This commit is contained in:
tangly1024.com
2023-06-07 15:51:07 +08:00
parent 93fd5b8fe3
commit 81e018fe84
10 changed files with 11 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ export function getAllCategories({ allPages, categoryOptions, sliceCount = 0 })
return []
}
// 计数
let categories = allposts?.map(p => p.category)
let categories = allPosts?.map(p => p.category)
categories = [...categories.flat()]
const categoryObj = {}
categories.forEach(category => {

View File

@@ -14,7 +14,7 @@ export function getAllTags({ allPages, sliceCount = 0, tagOptions }) {
return []
}
// 计数
let tags = allposts?.map(p => p.tags)
let tags = allPosts?.map(p => p.tags)
tags = [...tags.flat()]
const tagObj = {}
tags.forEach(tag => {