update
This commit is contained in:
@@ -17,7 +17,6 @@ type Post = {
|
||||
// 2. 对于你的模板,你可以直接从 prop 获取条目
|
||||
const { post } = Astro.props as { post: Post };
|
||||
const { Content } = await render(post);
|
||||
console.log('post', post);
|
||||
const showMenu = post.data?.showMenu;
|
||||
const staticPaths = await getStaticPaths();
|
||||
const menu = staticPaths.map((item) => item.data);
|
||||
@@ -25,7 +24,4 @@ const menu = staticPaths.map((item) => item.data);
|
||||
|
||||
<Main showMenu={showMenu} menu={menu} basename={basename}>
|
||||
<Content />
|
||||
<div slot='menu'>
|
||||
<div>sdfsdfsdf sfsdfsdf</div>
|
||||
</div>
|
||||
</Main>
|
||||
|
||||
Reference in New Issue
Block a user