Fix: pass image prop to Layout and Head
This commit is contained in:
parent
dd097688c4
commit
77fb20abe4
1 changed files with 3 additions and 2 deletions
|
|
@ -8,15 +8,16 @@ import { SITE } from "@consts";
|
|||
type Props = {
|
||||
title: string;
|
||||
description: string;
|
||||
image?: string;
|
||||
};
|
||||
|
||||
const { title, description } = Astro.props;
|
||||
const { title, description, image } = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<Head title={`${title} | ${SITE.TITLE}`} description={description} />
|
||||
<Head title={`${title} | ${SITE.TITLE}`} description={description} image={image} />
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue