From 75deb49409459a137ec65d95e898d92f89624bb8 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Tue, 17 Sep 2024 15:20:39 -0500 Subject: [PATCH] fix: Reading non-existent date field in archives --- src/routes/archives/+page.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/routes/archives/+page.ts b/src/routes/archives/+page.ts index adcf3a6..6dae9d3 100644 --- a/src/routes/archives/+page.ts +++ b/src/routes/archives/+page.ts @@ -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, }; }