aboutsummaryrefslogtreecommitdiff
path: root/components/card.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/card.tsx')
-rw-r--r--components/card.tsx14
1 files changed, 0 insertions, 14 deletions
diff --git a/components/card.tsx b/components/card.tsx
deleted file mode 100644
index 7a6a472..0000000
--- a/components/card.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import Tags from './tag';
-
-import { ArticleMeta } from '../pages/post/[id]';
-
-export default function PostCard(props: {
- post: ArticleMeta;
-}) {
- return <a className='postCard' href={'/post/' + props.post.id}>
- {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>;
-}