Skip to content

Commit

Permalink
feat(tags): show number of count
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Aug 4, 2023
1 parent c2403b6 commit 097604f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TagComponent: React.FunctionComponent<{ tag: Tag, className: string | null
className={className ? className : null}
target="_blank"
data-tag={tag.name.toLowerCase()}>
{`${tag.name}`}
{`${tag.name} (${tag.count})`}
</Link>
);
}
Expand Down
3 changes: 2 additions & 1 deletion models/tag.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export interface Tag {
id: string,
name: string
name: string,
count: number
}

0 comments on commit 097604f

Please sign in to comment.