From f8de3a1a5e9e4f6c2c823e649e732291b99f6ba0 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Wed, 11 Oct 2023 15:32:53 +0800 Subject: [PATCH] feat: add post cover to postrow --- components/PostRow.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/PostRow.js b/components/PostRow.js index 76aeb24..4a372f6 100644 --- a/components/PostRow.js +++ b/components/PostRow.js @@ -22,6 +22,16 @@ export default function PostRow({ post, showAuthor = true }) { return (
+ {meta?.image && ( +
+ cover image +
+ )} +
{date.format('LL')}