Skip to content

Commit b862b0e

Browse files
committed
feat(seo): update AppLayout
1 parent 848d99b commit b862b0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/layouts/AppLayout.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ import siteConfig from '@/configs/site'
99
export interface Props {
1010
title: string
1111
description: string
12+
image?: string | undefined
1213
canonicalURL?: string | undefined
1314
author: string
1415
headerCssClasses?: string
1516
keywords?: string[]
1617
}
1718
18-
const { title, description = '', canonicalURL, author, headerCssClasses = '' } = Astro.props
19+
const { title, description = '', image, canonicalURL, author, headerCssClasses = '' } = Astro.props
1920
const { favicon, faviconMimeType } = siteConfig
2021
const pageDescription =
2122
description.length > 0 ? description : `${title} - ${siteConfig.description}`
@@ -27,6 +28,7 @@ const pageDescription =
2728
<SEOMeta
2829
title={title}
2930
description={pageDescription}
31+
image={image}
3032
canonicalURL={canonicalURL}
3133
favicon={favicon}
3234
faviconMimeType={faviconMimeType}

0 commit comments

Comments
 (0)