部分配置siteConfig化

This commit is contained in:
tangly1024.com
2023-11-01 18:40:00 +08:00
parent 70f6413fb2
commit 52495e0200
80 changed files with 293 additions and 200 deletions

View File

@@ -285,7 +285,7 @@ async function getDataBaseInfoByNotionAPI({ pageId, from }) {
})
// 站点配置优先读取配置表格否则读取blog.config.js 文件
const CONFIG = await getConfigMapFromConfigPage(collectionData) || BLOG
const NOTION_CONFIG = await getConfigMapFromConfigPage(collectionData) || BLOG
// Sort by date
if (BLOG.POSTS_SORT_BY === 'date') {
@@ -305,7 +305,7 @@ async function getDataBaseInfoByNotionAPI({ pageId, from }) {
const allNavPages = getNavPages({ allPages })
return {
CONFIG,
NOTION_CONFIG,
notice,
siteInfo,
allPages,