diff --git a/themes/starter/components/Hero.js b/themes/starter/components/Hero.js index b0fed7a9..00a43a06 100644 --- a/themes/starter/components/Hero.js +++ b/themes/starter/components/Hero.js @@ -4,7 +4,8 @@ import { siteConfig } from '@/lib/config' /** * 英雄大图区块 */ -export const Hero = () => { +export const Hero = props => { + const CONFIG = props?.NOTION_CONFIG || CONFIG return ( <> {/* */} @@ -19,37 +20,49 @@ export const Hero = () => { data-wow-delay='.2s'> {/* 主标题 */}

- {siteConfig('STARTER_HERO_TITLE_1')} + {siteConfig('STARTER_HERO_TITLE_1', null, CONFIG)}

{/* 次标题 */}

- {siteConfig('STARTER_HERO_TITLE_2')} + {siteConfig('STARTER_HERO_TITLE_2', null, CONFIG)}

{/* 按钮组 */}