Adds table of contents. Removes now from the top level of the sidebar.
This commit is contained in:
@@ -14,9 +14,9 @@ type Props = CollectionEntry<'blog'>;
|
||||
|
||||
const post = Astro.props;
|
||||
const { slug } = Astro.params;
|
||||
const { Content } = await render(post);
|
||||
const { Content, headings } = await render(post);
|
||||
---
|
||||
|
||||
<BlogPost slug={slug} {...post.data} >
|
||||
<BlogPost slug={slug} headings={headings} {...post.data} >
|
||||
<Content />
|
||||
</BlogPost>
|
||||
|
||||
Reference in New Issue
Block a user