From 4ae58fea608b30e89d6191becbabdf344779ab52 Mon Sep 17 00:00:00 2001 From: Carson Clarke-Magrab Date: Sun, 16 Jun 2024 01:59:37 -0400 Subject: [PATCH] auto create blog list --- quartz/components/RecentBlog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quartz/components/RecentBlog.tsx b/quartz/components/RecentBlog.tsx index e66df3c50..efc8751ea 100644 --- a/quartz/components/RecentBlog.tsx +++ b/quartz/components/RecentBlog.tsx @@ -23,8 +23,8 @@ export default (() => { return curr } - const prevDate = prev.dates?.created ?? new Date(1970, 1, 1) - const currDate = curr.dates?.created ?? new Date(1970, 1, 1) + const prevDate = prev.dates?.published ?? new Date(1970, 1, 1) + const currDate = curr.dates?.published ?? new Date(1970, 1, 1) if (currDate > prevDate) { return curr } @@ -56,7 +56,7 @@ export default (() => { - {parseDate(page.dates?.published!)} + {page.frontmatter?.publishDate!}