Adds table of contents. Removes now from the top level of the sidebar.

This commit is contained in:
2026-05-26 17:10:01 -07:00
parent 5c90096a10
commit bcc2d85560
7 changed files with 105 additions and 6 deletions

View File

@@ -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>