修复starter主题,部分不支持inline_config

This commit is contained in:
tangly1024.com
2024-09-23 12:34:44 +08:00
parent 6b4ed379f5
commit 97d700905e
21 changed files with 1025 additions and 1099 deletions

View File

@@ -1,7 +1,6 @@
import { siteConfig } from '@/lib/config'
import { useGlobal } from '@/lib/global'
import { useEffect } from 'react'
import CONFIG from '../config'
import { MenuItem } from './MenuItem'
/**
* 响应式 折叠菜单
@@ -15,25 +14,25 @@ export const MenuList = props => {
icon: 'fas fa-archive',
name: locale.NAV.ARCHIVE,
href: '/archive',
show: siteConfig('HEO_MENU_ARCHIVE', null, CONFIG)
show: siteConfig('HEO_MENU_ARCHIVE')
},
{
icon: 'fas fa-search',
name: locale.NAV.SEARCH,
href: '/search',
show: siteConfig('HEO_MENU_SEARCH', null, CONFIG)
show: siteConfig('HEO_MENU_SEARCH')
},
{
icon: 'fas fa-folder',
name: locale.COMMON.CATEGORY,
href: '/category',
show: siteConfig('HEO_MENU_CATEGORY', null, CONFIG)
show: siteConfig('HEO_MENU_CATEGORY')
},
{
icon: 'fas fa-tag',
name: locale.COMMON.TAGS,
href: '/tag',
show: siteConfig('HEO_MENU_TAG', null, CONFIG)
show: siteConfig('HEO_MENU_TAG')
}
]