diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/card.tsx | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/components/card.tsx b/components/card.tsx index 620ada7..7a6a472 100644 --- a/components/card.tsx +++ b/components/card.tsx @@ -3,12 +3,12 @@ import Tags from './tag';  import { ArticleMeta } from '../pages/post/[id]';  export default function PostCard(props: { -	post: ArticleMeta +	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> +	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>;  } |