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 = { type Props = {
title: string; title: string;
description: string; description: string;
image?: string;
}; };
const { title, description } = Astro.props; const { title, description, image } = Astro.props;
--- ---
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<Head title={`${title} | ${SITE.TITLE}`} description={description} /> <Head title={`${title} | ${SITE.TITLE}`} description={description} image={image} />
</head> </head>
<body> <body>
<noscript> <noscript>