aboutsummaryrefslogtreecommitdiff
path: root/components/card.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-12 18:43:02 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-12 18:43:02 +0200
commit35c07445d07dd9f902df5ee991f7ccf3ac6a5f4a (patch)
treee0022617f9fefe812a395848b0bb5f491f938e37 /components/card.tsx
parent38459d2167d21b1d2dccba4e64b5b176269ce1c8 (diff)
display tags on recent posts
Diffstat (limited to 'components/card.tsx')
-rw-r--r--components/card.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/card.tsx b/components/card.tsx
index ba62d57..620ada7 100644
--- a/components/card.tsx
+++ b/components/card.tsx
@@ -1,3 +1,5 @@
+import Tags from './tag';
+
import { ArticleMeta } from '../pages/post/[id]';
export default function PostCard(props: {
@@ -7,5 +9,6 @@ export default function PostCard(props: {
{ props.post.cover && <img src={props.post.cover} className="cover"/> }
<h2 className="title">{props.post.title}</h2>
<strong className="subtitle">{props.post.subtitle}</strong>
+ { props.post.tags?.length != 0 && <Tags tags={props.post.tags} /> }
</a>
}