From 2586a2831706aca5804a822aa0ce289800d32749 Mon Sep 17 00:00:00 2001 From: fighting-bug Date: Wed, 15 Mar 2023 13:24:19 +0800 Subject: [PATCH 1/3] =?UTF-8?q?hexo=E4=B8=BB=E9=A2=98=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E4=B8=AA=E9=A6=96=E9=A1=B5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hexo主题增加了个首页按钮 --- themes/hexo/components/MenuButtonGroupTop.js | 1 + themes/hexo/config_hexo.js | 1 + 2 files changed, 2 insertions(+) diff --git a/themes/hexo/components/MenuButtonGroupTop.js b/themes/hexo/components/MenuButtonGroupTop.js index f6ae7a29..90efcaf7 100644 --- a/themes/hexo/components/MenuButtonGroupTop.js +++ b/themes/hexo/components/MenuButtonGroupTop.js @@ -8,6 +8,7 @@ const MenuButtonGroupTop = (props) => { const { locale } = useGlobal() let links = [ + { icon: 'fa-solid fa-house', name: locale.NAV.INDEX, to: '/', show: CONFIG_HEXO.MENU_INDEX }, { icon: 'fas fa-search', name: locale.NAV.SEARCH, to: '/search', show: CONFIG_HEXO.MENU_SEARCH }, { icon: 'fas fa-archive', name: locale.NAV.ARCHIVE, to: '/archive', show: CONFIG_HEXO.MENU_ARCHIVE } // { icon: 'fas fa-folder', name: locale.COMMON.CATEGORY, to: '/category', show: CONFIG_HEXO.MENU_CATEGORY }, diff --git a/themes/hexo/config_hexo.js b/themes/hexo/config_hexo.js index 3a2612fd..73febab2 100644 --- a/themes/hexo/config_hexo.js +++ b/themes/hexo/config_hexo.js @@ -6,6 +6,7 @@ const CONFIG_HEXO = { HOME_NAV_BACKGROUND_IMG_FIXED: true, // 首页背景图滚动时是否固定,true 则滚动时图片不懂; false则随鼠标滚动 // 菜单配置 + MENU_INDEX: true, // 显示首页 MENU_CATEGORY: true, // 显示分类 MENU_TAG: true, // 显示标签 MENU_ARCHIVE: true, // 显示归档 From fafcfbed40b9ca7b11c392d543cf84e8d267177e Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 15 Mar 2023 16:11:42 +0800 Subject: [PATCH 2/3] :-) --- themes/hexo/components/MenuButtonGroupTop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/hexo/components/MenuButtonGroupTop.js b/themes/hexo/components/MenuButtonGroupTop.js index 90efcaf7..866898e8 100644 --- a/themes/hexo/components/MenuButtonGroupTop.js +++ b/themes/hexo/components/MenuButtonGroupTop.js @@ -37,12 +37,12 @@ const MenuButtonGroupTop = (props) => { - ); + ) } else { return null } })} - ); + ) } export default MenuButtonGroupTop From 7f6331e8eb976dd3519827ae9587639beb175b9d Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 15 Mar 2023 16:11:48 +0800 Subject: [PATCH 3/3] contributor --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 44220cd3..87a96423 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,9 @@ SkysCrystal
Simon Shi

🔧 🐛 S.Y. Lee
S.Y. Lee

🔧 🐛 - - + + fighting-buf
fighting-buf

🔧 🐛 +