+ )
}
diff --git a/themes/simple/components/MenuItemCollapse.js b/themes/simple/components/MenuItemCollapse.js
index 7bd2cc13..50174dc3 100644
--- a/themes/simple/components/MenuItemCollapse.js
+++ b/themes/simple/components/MenuItemCollapse.js
@@ -33,7 +33,7 @@ export const MenuItemCollapse = props => {
onClick={toggleShow}>
{!hasSubMenu && (
@@ -72,7 +72,7 @@ export const MenuItemCollapse = props => {
-
+
{sLink?.icon && (
diff --git a/themes/simple/components/MenuItemDrop.js b/themes/simple/components/MenuItemDrop.js
index 316dc0da..7a5bbff8 100644
--- a/themes/simple/components/MenuItemDrop.js
+++ b/themes/simple/components/MenuItemDrop.js
@@ -15,7 +15,7 @@ export const MenuItemDrop = ({ link }) => {
onMouseOut={() => changeShow(false)}>
{!hasSubMenu && (
{link?.icon && (
@@ -52,7 +52,7 @@ export const MenuItemDrop = ({ link }) => {
-
+
{sLink?.icon && }
{sLink.title}
diff --git a/themes/simple/components/MenuList.js b/themes/simple/components/MenuList.js
index ec9700bf..be13b7b6 100644
--- a/themes/simple/components/MenuList.js
+++ b/themes/simple/components/MenuList.js
@@ -18,7 +18,7 @@ export const MenuList = ({ customNav, customMenu }) => {
const toggleIsOpen = () => {
changeIsOpen(!isOpen)
}
- const closeMenu = (e) => {
+ const closeMenu = e => {
changeIsOpen(false)
}
const router = useRouter()
@@ -29,10 +29,30 @@ export const MenuList = ({ customNav, customMenu }) => {
})
let links = [
- { icon: 'fas fa-search', name: locale.NAV.SEARCH, to: '/search', show: siteConfig('SIMPLE_MENU_SEARCH', null, CONFIG) },
- { icon: 'fas fa-archive', name: locale.NAV.ARCHIVE, to: '/archive', show: siteConfig('SIMPLE_MENU_ARCHIVE', null, CONFIG) },
- { icon: 'fas fa-folder', name: locale.COMMON.CATEGORY, to: '/category', show: siteConfig('SIMPLE_MENU_CATEGORY', null, CONFIG) },
- { icon: 'fas fa-tag', name: locale.COMMON.TAGS, to: '/tag', show: siteConfig('SIMPLE_MENU_TAG', null, CONFIG) }
+ {
+ icon: 'fas fa-search',
+ name: locale.NAV.SEARCH,
+ href: '/search',
+ show: siteConfig('SIMPLE_MENU_SEARCH', null, CONFIG)
+ },
+ {
+ icon: 'fas fa-archive',
+ name: locale.NAV.ARCHIVE,
+ href: '/archive',
+ show: siteConfig('SIMPLE_MENU_ARCHIVE', null, CONFIG)
+ },
+ {
+ icon: 'fas fa-folder',
+ name: locale.COMMON.CATEGORY,
+ href: '/category',
+ show: siteConfig('SIMPLE_MENU_CATEGORY', null, CONFIG)
+ },
+ {
+ icon: 'fas fa-tag',
+ name: locale.COMMON.TAGS,
+ href: '/tag',
+ show: siteConfig('SIMPLE_MENU_TAG', null, CONFIG)
+ }
]
if (customNav) {
@@ -48,25 +68,46 @@ export const MenuList = ({ customNav, customMenu }) => {
return null
}
- return (<>
- {/* 大屏模式菜单 */}
-