Skip to content

Commit

Permalink
fix: blog post card categories
Browse files Browse the repository at this point in the history
  • Loading branch information
CaliCastle committed Jul 21, 2023
1 parent 4d3586f commit 0d27b98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ next-env.d.ts
static/

.react-email/
/.idea
10 changes: 6 additions & 4 deletions app/(main)/blog/BlogPostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ export function BlogPostCard({ post, views }: { post: Post; views: number }) {
</span>
</span>

<span className="inline-flex items-center space-x-1 text-[12px] font-medium text-[--post-image-fg] md:text-sm">
<ScriptIcon />
<span>{categories.join(', ')}</span>
</span>
{Array.isArray(categories) && (
<span className="inline-flex items-center space-x-1 text-[12px] font-medium text-[--post-image-fg] md:text-sm">
<ScriptIcon />
<span>{categories.join(', ')}</span>
</span>
)}
</span>
<span className="inline-flex items-center space-x-3 text-[12px] font-medium text-[--post-image-fg] md:text-xs">
<span className="inline-flex items-center space-x-1">
Expand Down

0 comments on commit 0d27b98

Please sign in to comment.