mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 16:36:34 -05:00
fix(docs): use blog post header image as OG image instead of default
Co-authored-by: himself65 <14026360+himself65@users.noreply.github.com>
This commit is contained in:
@@ -272,8 +272,20 @@ export async function generateMetadata({
|
||||
}
|
||||
const page = blogs.getPage(slug);
|
||||
if (!page) return notFound();
|
||||
const { title, description } = page.data;
|
||||
return { title, description };
|
||||
const { title, description, image } = page.data;
|
||||
return {
|
||||
title,
|
||||
description,
|
||||
...(image && {
|
||||
openGraph: {
|
||||
images: [image],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image" as const,
|
||||
images: [image],
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
export function generateStaticParams() {
|
||||
|
||||
17561
landing/package-lock.json
generated
Normal file
17561
landing/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user