{link.name}
{link.slot}
diff --git a/themes/hexo/components/MenuList.js b/themes/hexo/components/MenuList.js
index bf8ac23b..c8103624 100644
--- a/themes/hexo/components/MenuList.js
+++ b/themes/hexo/components/MenuList.js
@@ -22,23 +22,23 @@ const MenuList = (props) => {
}
return
+ {links.map(link => {
+ if (link && link.show) {
+ const selected = (router.pathname === link.to) || (router.asPath === link.to)
+ return
+
+
+ {link.slot}
+
+
+ } else {
+ return null
+ }
+ })}
+
}
export default MenuList