fix: og image generation

This commit is contained in:
gosangam
2026-05-06 01:45:47 +05:30
parent de374eab8b
commit 7361f9c14a
28 changed files with 221 additions and 45 deletions
+3 -1
View File
@@ -123,7 +123,9 @@ export async function generateMetadata({
}): Promise<Metadata> {
const { chapter, verse } = await params;
const sp = await searchParams;
const quote = extractQuoteFromHl(sp);
const v = await getVerseWithFallback(parseInt(chapter), parseInt(verse));
const paragraphs = v ? [v.translation, ...v.purport] : undefined;
const quote = extractQuoteFromHl(sp, paragraphs);
if (quote) {
return buildOgMeta({
title: "Śrī Brahma-saṁhitā",