This commit is contained in:
parent
f77bd6cc62
commit
b44e609d22
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue