diff --git a/themes/example/components/Header.js b/themes/example/components/Header.js index fdb049e3..5331eed2 100644 --- a/themes/example/components/Header.js +++ b/themes/example/components/Header.js @@ -8,7 +8,7 @@ import { MenuList } from './MenuList' */ export const Header = props => { return ( -
+
{ onMouseOut={() => changeShow(false)}> {!hasSubMenu && (
- + {link?.icon && } {link?.name} {hasSubMenu && } @@ -41,7 +41,7 @@ export const MenuItemDrop = ({ link }) => {
  • - + {link?.icon &&   } {sLink.title} diff --git a/themes/example/components/MenuList.js b/themes/example/components/MenuList.js index 09613b1a..90b00c7e 100644 --- a/themes/example/components/MenuList.js +++ b/themes/example/components/MenuList.js @@ -17,28 +17,28 @@ export const MenuList = props => { id: 1, icon: 'fas fa-search', name: locale.NAV.SEARCH, - to: '/search', + href: '/search', show: siteConfig('EXAMPLE_MENU_SEARCH', null, CONFIG) }, { id: 2, icon: 'fas fa-archive', name: locale.NAV.ARCHIVE, - to: '/archive', + href: '/archive', show: siteConfig('EXAMPLE_MENU_ARCHIVE', null, CONFIG) }, { id: 3, icon: 'fas fa-folder', name: locale.COMMON.CATEGORY, - to: '/category', + href: '/category', show: siteConfig('EXAMPLE_MENU_CATEGORY', null, CONFIG) }, { id: 4, icon: 'fas fa-tag', name: locale.COMMON.TAGS, - to: '/tag', + href: '/tag', show: siteConfig('EXAMPLE_MENU_TAG', null, CONFIG) } ]