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/必看精选' },