From dc8f97439e9c6773edbe1a7f4dd22dbde27eaa5d Mon Sep 17 00:00:00 2001 From: Zuoling Rong Date: Sun, 4 May 2025 14:09:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B9=A6=E7=AD=BE=E9=A1=B5=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E7=9A=84=E9=80=BB=E8=BE=91=20closes=20#5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改了src/generator.js中的loadConfig函数 - 删除了自动向导航添加书签页面入口的代码 --- src/generator.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/generator.js b/src/generator.js index 8531a4a..cdb5cdc 100644 --- a/src/generator.js +++ b/src/generator.js @@ -227,16 +227,7 @@ function loadConfig() { config.bookmarks = bookmarksConfig; console.log(`Using bookmarks configuration from ${bookmarksSource}`); - // 确保导航中有书签页面 - const hasBookmarksNav = config.navigation.some(nav => nav.id === 'bookmarks'); - if (!hasBookmarksNav) { - config.navigation.push({ - name: '书签', - icon: 'fas fa-bookmark', - id: 'bookmarks', - active: false - }); - } + // 移除自动添加书签页面到导航的逻辑 } } catch (e) { console.error('Error loading bookmarks configuration:', e);