fix: Reading non-existent date field in archives

This commit is contained in:
Leni Aniva 2024-09-17 15:20:39 -05:00
parent 2caddbc8fd
commit 75deb49409
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 1 additions and 4 deletions

View File

@ -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,
};
}