diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 4697069..3bc9ccd 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,12 +1,11 @@ --- import MainHeader from '../components/MainHeader.astro'; -import TopHeader from '../components/TopHeader.astro'; import Footer from '../components/Footer.astro'; export interface Props { - title: string; + title: string; metaTitle: string; description: string; ogImg: string; tiwtterCard: string; tiwtterImage: string; tiwtterTitle: string; tiwtterDesc: string; tiwtterURL: string; artPubTime: string; artUpdtTime: string; ogSiteName: string; ogType: string; ogTitle: string; ogDesc: string; ogURL: string; } -const { title } = Astro.props; +const { title, metaTitle, description, ogImg, tiwtterCard, tiwtterImage, tiwtterTitle, tiwtterDesc, tiwtterURL, artPubTime, artUpdtTime, ogSiteName, ogType, ogTitle, ogDesc, ogURL} = Astro.props; --- @@ -15,8 +14,28 @@ const { title } = Astro.props; - + + {title} + + + + + + + + + + + + + + + + + + +
diff --git a/src/pages/[id].astro b/src/pages/[id].astro index 77e09ea..0d33fa6 100644 --- a/src/pages/[id].astro +++ b/src/pages/[id].astro @@ -15,7 +15,23 @@ const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug === const items = data.data[idx]; // console.log(data.data[idx]) --- - + +