diff --git a/blog.config.js b/blog.config.js index fa142cb1..a1f3d83f 100644 --- a/blog.config.js +++ b/blog.config.js @@ -91,6 +91,7 @@ const BLOG = { // 侧栏布局 是否反转(左变右,右变左) 已支持主题: hexo next medium fukasawa example LAYOUT_SIDEBAR_REVERSE: false, + SHOW_START_READING: true, // 是否展示开始阅读按钮 // 一个小插件展示你的facebook fan page~ @see https://tw.andys.pro/article/add-facebook-fanpage-notionnext FACEBOOK_PAGE_TITLE: process.env.NEXT_PUBLIC_FACEBOOK_PAGE_TITLE || null, // 邊欄 Facebook Page widget 的標題欄,填''則無標題欄 e.g FACEBOOK 粉絲團' diff --git a/themes/hexo/components/Hero.js b/themes/hexo/components/Hero.js index c07a401e..d490608b 100644 --- a/themes/hexo/components/Hero.js +++ b/themes/hexo/components/Hero.js @@ -68,7 +68,7 @@ const Hero = props => { {/* 滚动按钮 */}
-
{locale.COMMON.START_READING}
+
{CONFIG.HOME_NAV_BACKGROUND_IMG_FIXED && locale.COMMON.START_READING}
diff --git a/themes/matery/components/Hero.js b/themes/matery/components/Hero.js index 6c94cb1c..7f0d6467 100644 --- a/themes/matery/components/Hero.js +++ b/themes/matery/components/Hero.js @@ -61,7 +61,7 @@ const Hero = props => { {/* 滚动按钮 */}
{ window.scrollTo({ top: wrapperTop, behavior: 'smooth' }) }} className="mt-12 border cursor-pointer w-40 text-center pt-4 pb-3 text-md text-white hover:bg-orange-600 duration-300 rounded-3xl z-40"> - {locale.COMMON.START_READING} + {CONFIG.HOME_NAV_BACKGROUND_IMG_FIXED && locale.COMMON.START_READING}