Adds h-entry data to blog posts
This commit is contained in:
@@ -13,9 +13,10 @@ export async function getStaticPaths() {
|
||||
type Props = CollectionEntry<'blog'>;
|
||||
|
||||
const post = Astro.props;
|
||||
const { slug } = Astro.params;
|
||||
const { Content } = await render(post);
|
||||
---
|
||||
|
||||
<BlogPost {...post.data}>
|
||||
<BlogPost slug={slug} {...post.data} >
|
||||
<Content />
|
||||
</BlogPost>
|
||||
|
||||
Reference in New Issue
Block a user