Skip to content

Commit 9fa2c0a

Browse files
committed
descriptionがないのを修正
1 parent faa9782 commit 9fa2c0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/[lang]/[pageId]/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ export async function generateMetadata({
1616
const pageEntry = langEntry?.pages.find((p) => p.slug === pageId);
1717
if (!langEntry || !pageEntry) notFound();
1818

19+
const sections = await getMarkdownSections(lang, pageId);
20+
const description = sections[0].rawContent;
21+
1922
return {
2023
title: `${langEntry!.name}-${pageEntry.index}. ${pageEntry.title}`,
24+
description,
2125
};
2226
}
2327

0 commit comments

Comments
 (0)