diff --git a/components/ArticleDetail.js b/components/ArticleDetail.js index d4b5ccf9..93ba0122 100644 --- a/components/ArticleDetail.js +++ b/components/ArticleDetail.js @@ -45,11 +45,11 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n
-
+
{post.type && !post.type.includes('Page') && post?.page_cover && ( <> @@ -150,7 +150,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n
{post.tagItems && (
-
+
{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
+ 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 ( -
+
@@ -41,7 +41,7 @@ const BlogPostCard = ({ post, tags }) => { {post?.page_cover && ( -
+
{post.title}
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
-
+ return

没有找到文章 {(currentSearch &&

{currentSearch}
)}

-
} 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 } else { - return
+ 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
- + } 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