From ee39d6981730aefa59b119acbb2d5cf183dccf83 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 7 Jul 2023 21:00:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=ADlanding=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getNotionData.js | 1 - next.config.js | 3 ++- themes/landing/config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index e5c50111..5a247f8c 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -36,7 +36,6 @@ export async function getGlobalData({ delete db.collectionQuery delete db.collectionId delete db.collectionView - console.log(db) return db } diff --git a/next.config.js b/next.config.js index a91e4e81..b97ad538 100644 --- a/next.config.js +++ b/next.config.js @@ -18,7 +18,8 @@ function scanSubdirectories(directory) { const fullPath = path.join(directory, file) const stats = fs.statSync(fullPath) - if (stats.isDirectory()) { + // landing主题比较特殊,不在可切换的主题中显示 + if (stats.isDirectory() && file !== 'landing') { subdirectories.push(file) } }) diff --git a/themes/landing/config.js b/themes/landing/config.js index 6f090f91..30872875 100644 --- a/themes/landing/config.js +++ b/themes/landing/config.js @@ -20,7 +20,7 @@ const CONFIG = { // 特性介绍 FEATURES_HEADER_1: '探索的过程', - FEATURES_HEADER_1_P: "如何搭建自己的门户网站,塑造一个品牌展示中心?
曾经,它是系统繁重的Wordpress、是操作复杂的Hexo、是昂贵不稳定的技术团队;
现在,您只要一个笔记软件Notion,就够了", + FEATURES_HEADER_1_P: "如何搭建自己的门户网站,塑造一个品牌展示中心?
曾经,它是系统繁重的Wordpress、是操作复杂的Hexo、是昂贵不稳定的技术团队;
现在,只要一个Notion笔记就够了", FEATURES_HEADER_2: 'Notion+NextJs组合方案', FEATURES_HEADER_2_P: 'Notion作为CMS管理您的站点配置和网页数据,NextJs作为渲染博客的脚本,借助第三方的Vercel等托管平台提供网络服务。', FEATURES_CARD_1_TITLE: '简单快速的系统',