mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-19 23:16:48 +00:00
bugfix:
所有标签页数量修复
This commit is contained in:
@@ -30,7 +30,7 @@ export async function getAllTags ({ allPosts, sliceCount = 12, tagOptions }) {
|
||||
return { name: tag, count: tagObj[tag], color }
|
||||
})
|
||||
list.sort((a, b) => b.count - a.count)
|
||||
if (sliceCount) {
|
||||
if (sliceCount && sliceCount > 0) {
|
||||
return list.slice(0, 12)
|
||||
} else {
|
||||
return list
|
||||
|
||||
Reference in New Issue
Block a user