修复日期为空时编译错误的bug

This commit is contained in:
tlyong1992
2022-06-07 14:50:46 +08:00
parent 96a13170fd
commit a6948117f8
11 changed files with 23 additions and 23 deletions

View File

@@ -31,7 +31,7 @@ const BlogPostCard = ({ post, showSummary }) => {
'flex mt-2 items-center justify-start flex-wrap space-x-3 text-gray-400'
}
>
<div className="text-sm py-1">{post.date.start_date}</div>
<div className="text-sm py-1">{post.date?.start_date}</div>
{CONFIG_MEDIUM.POST_LIST_CATEGORY && (
<CategoryItem category={post.category} />
)}