Use date-fns for parsing pubDate, use Date instead of string

This commit is contained in:
2023-11-26 07:52:39 -06:00
parent a205436bc4
commit 2184dcd202
4 changed files with 29 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ const posts = await getCollection("blog");
<Summary
url={`/posts/${post.slug}`}
description={post.data.description}
date={new Date()}
date={post.data.pubDate}
title={post.data.title}
tags={post.data.tags}
/>