update Contents function

This commit is contained in:
Jiao77
2026-03-01 12:45:33 +08:00
parent e9b0742032
commit 87ab813df8
5 changed files with 719 additions and 11 deletions

View File

@@ -24,9 +24,9 @@ interface Props {
}
const { post } = Astro.props;
const { Content } = await post.render();
const { Content, headings } = await post.render();
---
<PostLayout post={post}>
<PostLayout post={post} headings={headings}>
<Content components={mdxComponents} />
</PostLayout>