This commit is contained in:
parent
7740276cab
commit
21642d36b0
@ -8,7 +8,12 @@ interface Props {
|
||||
description?: string;
|
||||
}
|
||||
|
||||
const {title, description, image} = Astro.props
|
||||
// @ts-ignore: Property exists
|
||||
const title = Astro.props?.frontmatter?.title || Astro.props.title
|
||||
// @ts-ignore: Property exists
|
||||
const image = Astro.props?.frontmatter?.image || Astro.props.image
|
||||
// @ts-ignore: Property exists
|
||||
const description = Astro.props?.frontmatter?.description || Astro.props.description
|
||||
---
|
||||
|
||||
<Layout title={title} type="text" image={image} description={description}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user