-
+
+ return
{prev.title}
diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js
index 55229ed7..05a7ced7 100644
--- a/components/BlogPostCard.js
+++ b/components/BlogPostCard.js
@@ -8,8 +8,8 @@ import TagItemMini from './TagItemMini'
const BlogPostCard = ({ post, tags }) => {
return (
-
{locale.COMMON.TAGS}:
{post.tagItems.map(tag => (
@@ -167,7 +167,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n
{/* 评论互动 */}
-
+
diff --git a/components/BlogAround.js b/components/BlogAround.js
index 01edc213..53231eb1 100644
--- a/components/BlogAround.js
+++ b/components/BlogAround.js
@@ -11,7 +11,7 @@ export default function BlogAround ({ prev, next }) {
if (!prev || !next) {
return <>>
}
- return
+
@@ -41,7 +41,7 @@ const BlogPostCard = ({ post, tags }) => {
{post?.page_cover && (
-
+
diff --git a/components/BlogPostListEmpty.js b/components/BlogPostListEmpty.js
index acb4e688..b1d87253 100644
--- a/components/BlogPostListEmpty.js
+++ b/components/BlogPostListEmpty.js
@@ -5,10 +5,8 @@
* @constructor
*/
const BlogPostListEmpty = ({ currentSearch }) => {
- return
-
} else {
- return
+ return
}
export default BlogPostListEmpty
diff --git a/components/BlogPostListScroll.js b/components/BlogPostListScroll.js
index e5f7920b..2d9f2224 100644
--- a/components/BlogPostListScroll.js
+++ b/components/BlogPostListScroll.js
@@ -51,7 +51,7 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory,
if (!postsToShow || postsToShow.length === 0) {
return 没有找到文章 {(currentSearch &&
{currentSearch}
)}
-
+ return
{/* 文章列表 */}
diff --git a/components/CategoryGroup.js b/components/CategoryGroup.js
index dd0ac764..6e9c71e8 100644
--- a/components/CategoryGroup.js
+++ b/components/CategoryGroup.js
@@ -4,21 +4,21 @@ import Link from 'next/link'
import React from 'react'
const CategoryGroup = ({ currentCategory, categories }) => {
- return
-
+ return <>
+
+ >
}
export default CategoryGroup
diff --git a/components/CategoryList.js b/components/CategoryList.js
index ba84f6b9..e226bf08 100644
--- a/components/CategoryList.js
+++ b/components/CategoryList.js
@@ -11,7 +11,7 @@ const CategoryList = ({ currentCategory, categories }) => {
const { locale } = useGlobal()
return
{Object.keys(categories).map(category => {
const selected = currentCategory === category
return
- {category}({categories[category]})
+ ? 'hover:text-white bg-blue-500 dark:bg-black text-white '
+ : 'dark:text-gray-400 text-gray-500 hover:text-blue-500 ') +
+ ' text-sm w-full items-center duration-300 dark:hover:text-blue-400 hover:underline px-5 cursor-pointer py-1 font-light'}>
+ {category}({categories[category]})
})}
- -
-
{locale.COMMON.CATEGORY}
+ {locale.COMMON.CATEGORY}
{Object.keys(categories).map(category => {
const selected = category === currentCategory
return (
diff --git a/components/LatestPostsGroup.js b/components/LatestPostsGroup.js
index 9f415d57..23dbe64e 100644
--- a/components/LatestPostsGroup.js
+++ b/components/LatestPostsGroup.js
@@ -31,10 +31,10 @@ const LatestPostsGroup = ({ posts, sliceCount = 5 }) => {
const selected = currentPath === `${BLOG.path}/article/${post.slug}`
return (
-
+
{post.title}
diff --git a/components/LoadingCover.js b/components/LoadingCover.js
index f404992b..2eacf0c6 100644
--- a/components/LoadingCover.js
+++ b/components/LoadingCover.js
@@ -2,7 +2,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faSpinner } from '@fortawesome/free-solid-svg-icons'
export default function LoadingCover () {
- return (
+ return (
diff --git a/components/MenuButtonGroup.js b/components/MenuButtonGroup.js
index 78effe4a..f564c40a 100644
--- a/components/MenuButtonGroup.js
+++ b/components/MenuButtonGroup.js
@@ -23,14 +23,14 @@ const MenuButtonGroup = ({ allowCollapse = false }) => {
// { id: 9, icon: 'faTelegram', name: 'Telegram', to: 'https://t.me/tangly_1024', show: true }
]
return