From ffa1533a191bf09ea5934e8821de7d26275f8521 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 12 Apr 2021 11:50:37 +0200 Subject: added recent posts to home page --- components/card.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 components/card.tsx (limited to 'components') diff --git a/components/card.tsx b/components/card.tsx new file mode 100644 index 0000000..ba62d57 --- /dev/null +++ b/components/card.tsx @@ -0,0 +1,11 @@ +import { ArticleMeta } from '../pages/post/[id]'; + +export default function PostCard(props: { + post: ArticleMeta +}) { + return + { props.post.cover && } +

{props.post.title}

+ {props.post.subtitle} +
+} -- cgit v1.2.3