fix: Reading non-existent date field in archives
This commit is contained in:
parent
2caddbc8fd
commit
75deb49409
|
@ -6,10 +6,7 @@ export const load: PageLoad = async ({ params }) => {
|
||||||
const Content = post.default;
|
const Content = post.default;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
metadata: {
|
metadata: post.metadata,
|
||||||
...post.metadata,
|
|
||||||
date: new Date(post.metadata.date),
|
|
||||||
},
|
|
||||||
Content,
|
Content,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue