From 113aaada7b22b5fd5dc7fad750081a8f99142f6a Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 21 Feb 2022 12:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/NEXT/components/MenuButtonGroup.js | 2 +- themes/NEXT/config_next.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/NEXT/components/MenuButtonGroup.js b/themes/NEXT/components/MenuButtonGroup.js index a8a730fb..8e6f700a 100644 --- a/themes/NEXT/components/MenuButtonGroup.js +++ b/themes/NEXT/components/MenuButtonGroup.js @@ -12,7 +12,7 @@ const MenuButtonGroup = ({ postCount }) => { const archiveSlot =
{postCount}
const links = [ - { id: 0, icon: faHome, name: locale.NAV.INDEX, to: '/' || '/', show: true }, + { id: 0, icon: faHome, name: locale.NAV.INDEX, to: '/' || '/', show: CONFIG_NEXT.MENU_HOME }, { id: 1, icon: faTh, name: locale.COMMON.CATEGORY, to: '/category', show: CONFIG_NEXT.MENU_CATEGORY }, { id: 2, icon: faTag, name: locale.COMMON.TAGS, to: '/tag', show: CONFIG_NEXT.MENU_TAG }, { id: 3, icon: faArchive, name: locale.NAV.ARCHIVE, to: '/archive', slot: archiveSlot, show: CONFIG_NEXT.MENU_ARCHIVE }, diff --git a/themes/NEXT/config_next.js b/themes/NEXT/config_next.js index 84f24d38..0b072eab 100644 --- a/themes/NEXT/config_next.js +++ b/themes/NEXT/config_next.js @@ -19,10 +19,11 @@ const CONFIG_NEXT = { RIGHT_AD: false, // 右侧广告 // 菜单 - MENU_ABOUT: false, // 显示关于 + MENU_HOME: true, // 显示首页 MENU_CATEGORY: true, // 显示分类 MENU_TAG: true, // 显示标签 MENU_ARCHIVE: true, // 显示归档 + MENU_ABOUT: false, // 显示关于 MENU_SEARCH: true, // 显示搜索 // 悬浮挂件