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;
|
||||
|
||||
return {
|
||||
metadata: {
|
||||
...post.metadata,
|
||||
date: new Date(post.metadata.date),
|
||||
},
|
||||
metadata: post.metadata,
|
||||
Content,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue