[upgrade] Abstract components on the page into subcomponents

This commit is contained in:
PrinOrange
2024-09-28 00:18:55 +08:00
parent f00a79fcf3
commit 959e513dcd
31 changed files with 508 additions and 374 deletions

View File

@@ -37,7 +37,7 @@ export const PostList = (props: { data: TPostListItem[] }) => {
</div>
{postItem.frontMatter.tags && (
<div className="my-auto flex flex-wrap">
{postItem.frontMatter.tags.map((tagName) => (
{postItem.frontMatter.tags.map((tagName: string) => (
<Badge
className="my-1 mr-1 text-gray-600 dark:text-gray-300"
key={`tags-${nanoid()}`}