From 4798b5b4225f240ba4a1c668126e5557344025e5 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 13 Nov 2024 10:16:00 +0800 Subject: [PATCH 1/4] fix starter hero - bug --- themes/starter/components/Hero.js | 34 ++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) 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)}

{/* 按钮组 */}