mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-30 23:16:52 +00:00
Landing主题完善
This commit is contained in:
@@ -16,13 +16,14 @@ function scanSubdirectories(directory) {
|
||||
const subdirectories = []
|
||||
|
||||
fs.readdirSync(directory).forEach(file => {
|
||||
const fullPath = path.join(directory, file)
|
||||
const stats = fs.statSync(fullPath)
|
||||
// 这段代码会将landing排除在可选主题中
|
||||
|
||||
// landing主题比较特殊,不在可切换的主题中显示
|
||||
if (stats.isDirectory() && file !== 'landing') {
|
||||
subdirectories.push(file)
|
||||
}
|
||||
// const fullPath = path.join(directory, file)
|
||||
// const stats = fs.statSync(fullPath)
|
||||
// landing主题默认隐藏掉,一般网站不会用到
|
||||
// if (stats.isDirectory() && file !== 'landing') {
|
||||
// subdirectories.push(file)
|
||||
// }
|
||||
})
|
||||
|
||||
return subdirectories
|
||||
|
||||
Reference in New Issue
Block a user