mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-18 07:26:48 +00:00
Feature:
三列排版
This commit is contained in:
@@ -96,8 +96,8 @@ const initTheme = (theme, changeTheme) => {
|
||||
saveTheme('light')
|
||||
}
|
||||
}
|
||||
const baseLayoutClass = document.getElementById('wrapper').classList
|
||||
if (!baseLayoutClass.contains(theme)) {
|
||||
const baseLayoutClass = document.getElementById('wrapper')?.classList
|
||||
if (baseLayoutClass && !baseLayoutClass.contains(theme)) {
|
||||
baseLayoutClass.add(theme)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @param tagOptions tags的下拉选项
|
||||
* @returns {Promise<{}|*[]>}
|
||||
*/
|
||||
export async function getAllTags ({ allPosts, sliceCount = 12, tagOptions }) {
|
||||
export async function getAllTags ({ allPosts, sliceCount = 16, tagOptions }) {
|
||||
if (!allPosts) {
|
||||
return []
|
||||
}
|
||||
@@ -31,7 +31,7 @@ export async function getAllTags ({ allPosts, sliceCount = 12, tagOptions }) {
|
||||
})
|
||||
list.sort((a, b) => b.count - a.count)
|
||||
if (sliceCount && sliceCount > 0) {
|
||||
return list.slice(0, 12)
|
||||
return list.slice(0, sliceCount)
|
||||
} else {
|
||||
return list
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user