diff --git a/themes/starter/components/Hero.js b/themes/starter/components/Hero.js index 00a43a06..9223a534 100644 --- a/themes/starter/components/Hero.js +++ b/themes/starter/components/Hero.js @@ -1,11 +1,13 @@ /* eslint-disable @next/next/no-img-element */ import LazyImage from '@/components/LazyImage' import { siteConfig } from '@/lib/config' +import CONFIG from '../config' + /** * 英雄大图区块 */ export const Hero = props => { - const CONFIG = props?.NOTION_CONFIG || CONFIG + const config = props?.NOTION_CONFIG || CONFIG return ( <> {/* */} @@ -20,30 +22,30 @@ export const Hero = props => { data-wow-delay='.2s'> {/* 主标题 */}

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

{/* 次标题 */}

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

{/* 按钮组 */}