We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faa9782 commit 9fa2c0aCopy full SHA for 9fa2c0a
app/[lang]/[pageId]/page.tsx
@@ -16,8 +16,12 @@ export async function generateMetadata({
16
const pageEntry = langEntry?.pages.find((p) => p.slug === pageId);
17
if (!langEntry || !pageEntry) notFound();
18
19
+ const sections = await getMarkdownSections(lang, pageId);
20
+ const description = sections[0].rawContent;
21
+
22
return {
23
title: `${langEntry!.name}-${pageEntry.index}. ${pageEntry.title}`,
24
+ description,
25
};
26
}
27
0 commit comments