aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>
}