-
关键字:{currentSearch}
+
)}
{currentTag && (
-
-
{currentTag}
+
)}
{/* 文章列表 */}
-
- {postsToShow.map(post => (
-
- ))}
-
+
+ {postsToShow.map(post => (
+
+ ))}
+
-
-
{ handleGetMore() }}
- className='w-full my-4 py-4 bg-gray-300 text-center cursor-pointer dark:bg-gray-700 dark:text-gray-200'
- > {hasMore ? '继续加载' : '加载完了😰'}
-
+
+
{
+ handleGetMore()
+ }}
+ className='w-full my-4 py-4 bg-gray-300 text-center cursor-pointer dark:bg-gray-700 dark:text-gray-200'
+ > {hasMore ? '继续加载' : '加载完了😰'}
+
}
}
diff --git a/components/TagItemMini.js b/components/TagItemMini.js
index e050f173..fa6049e9 100644
--- a/components/TagItemMini.js
+++ b/components/TagItemMini.js
@@ -2,12 +2,12 @@ import Link from 'next/link'
const TagItemMini = ({ tag, selected = false, count }) => {
return
-
-
{tag + (count ? `(${count})` : '')}
+ : 'bg-white text-gray-500 hover:shadow-xl hover:text-white border-gray-500 dark:bg-gray-800 dark:border-gray-600'}` }>
+
{tag + (count ? `(${count})` : '')}
}