Fix: pass image prop to Layout and Head

This commit is contained in:
Obsidian Sync 2026-02-25 17:24:55 +05:30
parent dd097688c4
commit 77fb20abe4

View file

@ -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>