diff --git a/components/Analytics.js b/components/Analytics.js index 10197e48..9edcf75e 100644 --- a/components/Analytics.js +++ b/components/Analytics.js @@ -10,7 +10,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' export default function Analytics ({ postCount }) { const { locale } = useGlobal() - return
+ return <>
{locale.COMMON.ANALYTICS}
@@ -20,5 +20,5 @@ export default function Analytics ({ postCount }) { | {locale.COMMON.VIEWS}
-
+ } diff --git a/components/ArticleDetail.js b/components/ArticleDetail.js index ed02248f..9ad3e3a7 100644 --- a/components/ArticleDetail.js +++ b/components/ArticleDetail.js @@ -39,7 +39,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n return (<>
{post.type && !post.type.includes('Page') && post?.page_cover && ( diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index 68c4341e..049fe5ec 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -8,7 +8,7 @@ import TagItemMini from './TagItemMini' const BlogPostCard = ({ post, tags }) => { return ( -
diff --git a/components/SideAreaLeft.js b/components/SideAreaLeft.js index 9c388745..aeeb0bfe 100644 --- a/components/SideAreaLeft.js +++ b/components/SideAreaLeft.js @@ -24,13 +24,13 @@ const SideAreaLeft = ({ title, tags, currentTag, post, posts, categories, curren const postCount = posts?.length || 0 return <> -
-
+
+
{/* 菜单 */} -
+
@@ -38,32 +38,21 @@ const SideAreaLeft = ({ title, tags, currentTag, post, posts, categories, curren
{/* 统计 */} - +
+ +
- {/* 分类 */} - {/* { categories && ( */} - {/*
*/} - {/*
*/} - {/*
{locale.COMMON.CATEGORY}
*/} - {/* */} - {/* */} - {/* {locale.COMMON.MORE} */} - {/* */} - {/* */} - {/*
*/} - {/* */} - {/*
*/} - {/* )} */} -
+ {showToc && ( -
-
+
+
{locale.COMMON.TABLE_OF_CONTENTS}
)} + } export default SideAreaLeft diff --git a/components/SideAreaRight.js b/components/SideAreaRight.js index d10fcaf0..4eb35421 100644 --- a/components/SideAreaRight.js +++ b/components/SideAreaRight.js @@ -49,7 +49,7 @@ const SideAreaRight = ({
*/} -
+
{/* 展示广告 */} +
{locale.COMMON.CATEGORY}
@@ -91,7 +91,7 @@ const SideAreaRight = ({ {/* 最新文章 */} {posts && ( -
+
@@ -103,13 +103,13 @@ const SideAreaRight = ({
)} - {/*
+ {/*
*/} {/* 标签云 */} {tags && ( -
+