Skip to content

Commit

Permalink
Fix param object key in content-collections.mdx
Browse files Browse the repository at this point in the history
The sample as-is resulted in the error "[ERROR] Missing parameter: post"
  • Loading branch information
jhuleatt authored Dec 23, 2024
1 parent de4d776 commit 90677f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/content-collections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ import { getCollection, render } from 'astro:content';
export async function getStaticPaths() {
const posts = await getCollection('blog');
return posts.map(post => ({
params: { id: post.id },
params: { post: post.id },
props: { post },
}));
}
Expand Down

0 comments on commit 90677f3

Please sign in to comment.