This commit is contained in:
hailin 2025-03-28 11:26:37 +08:00
parent f77bd6cc62
commit b44e609d22
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ export const getPostContent = async (language: string, slug: string): Promise<AI
// Serialize the MDX content and parse the frontmatter
const serialized = await mdxSerialized({ rawMdx });
const frontmatter = serialized.frontmatter as AIFrontmatter;
frontmatter.id = data.id
frontmatter.id = String(data.id)
frontmatter.p_name = data.p_name
frontmatter.title = data.main_title
frontmatter.description = data.sub_title || data.main_title