feat: corrects md to use a manual slug
This commit is contained in:
parent
9a40597b1f
commit
df12debd4c
3 changed files with 3 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import Layout from '../../layouts/Layout.astro';
|
|||
export async function getStaticPaths() {
|
||||
const posts = await getCollection('posts', ({ data }) => data.draft !== true);
|
||||
return posts.map(post => ({
|
||||
params: { slug: post.id },
|
||||
params: { slug: post.data.slug },
|
||||
props: { post }
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue