菜单调整

This commit is contained in:
tangly1024
2022-02-21 12:25:57 +08:00
parent 6ff655f689
commit 113aaada7b
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ const MenuButtonGroup = ({ postCount }) => {
const archiveSlot = <div className='bg-gray-300 dark:bg-gray-500 rounded-md text-gray-50 px-1 text-xs'>{postCount}</div>
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 },

View File

@@ -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, // 显示搜索
// 悬浮挂件