From 1ad7274c4451ed29f7a3cc6efcf36117da05fca1 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 9 Oct 2024 09:32:49 +0800 Subject: [PATCH] =?UTF-8?q?heo=20=E8=8B=B1=E9=9B=84=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/heo/components/Hero.js | 7 +++++-- themes/heo/config.js | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/themes/heo/components/Hero.js b/themes/heo/components/Hero.js index 7cb3ade716e..8c2a871b810 100644 --- a/themes/heo/components/Hero.js +++ b/themes/heo/components/Hero.js @@ -73,6 +73,9 @@ function Banner(props) { router.push(`${siteConfig('SUB_PATH', '')}/${randomPost?.slug}`) } + // 遮罩文字 + const coverTitle = siteConfig('HEO_HERO_COVER_TITLE') + return (
-
随便逛逛
+
{coverTitle}
diff --git a/themes/heo/config.js b/themes/heo/config.js index 436ad33daa6..bd0353c3ccb 100644 --- a/themes/heo/config.js +++ b/themes/heo/config.js @@ -24,6 +24,8 @@ const CONFIG = { HEO_HERO_TITLE_4: '新版上线', HEO_HERO_TITLE_5: 'NotionNext4.0 轻松定制主题', HEO_HERO_TITLE_LINK: 'https://tangly1024.com', + // 英雄区遮罩文字 + HEO_HERO_COVER_TITLE: '随便逛逛', // 英雄区显示三个置顶分类 HEO_HERO_CATEGORY_1: { title: '必看精选', url: '/tag/必看精选' },