Add missing node build files
This commit is contained in:
@@ -5,7 +5,7 @@ export async function getStaticPaths() {
|
||||
const hobbies = await getCollection('hobbies');
|
||||
return hobbies.map(hobby => ({
|
||||
params: { id: hobby.id },
|
||||
props: { post: hobby },
|
||||
props: { hobby: hobby },
|
||||
}));
|
||||
}
|
||||
// 2. For your template, you can get the entry directly from the prop
|
||||
|
||||
Reference in New Issue
Block a user