diff --git a/themes/fukasawa/components/ArticleDetail.js b/themes/fukasawa/components/ArticleDetail.js index 78957330..50da0ee2 100644 --- a/themes/fukasawa/components/ArticleDetail.js +++ b/themes/fukasawa/components/ArticleDetail.js @@ -92,7 +92,7 @@ export default function ArticleDetail(props) { - + {post.type === 'Post' && } {/* 评论互动 */}
diff --git a/themes/hexo/LayoutSlug.js b/themes/hexo/LayoutSlug.js index 36bb3449..7875c990 100644 --- a/themes/hexo/LayoutSlug.js +++ b/themes/hexo/LayoutSlug.js @@ -74,9 +74,10 @@ export const LayoutSlug = props => { data-ad-slot="3806269138" /> - - - + {post.type === 'Post' && } + {post.type === 'Post' && } + {post.type === 'Post' && } +
diff --git a/themes/medium/components/ArticleDetail.js b/themes/medium/components/ArticleDetail.js index c9eabe73..48630d47 100644 --- a/themes/medium/components/ArticleDetail.js +++ b/themes/medium/components/ArticleDetail.js @@ -66,7 +66,7 @@ export const ArticleDetail = props => { {CONFIG_MEDIUM.POST_DETAIL_TAG && post?.tagItems?.map(tag => )}
- + {post.type === 'Post' && } diff --git a/themes/next/components/ArticleDetail.js b/themes/next/components/ArticleDetail.js index ab7f9608..340f0f5a 100644 --- a/themes/next/components/ArticleDetail.js +++ b/themes/next/components/ArticleDetail.js @@ -100,29 +100,31 @@ export default function ArticleDetail(props) { {showArticleInfo && <> {/* 版权声明 */} - + {post.type === 'Post' && } {/* 推荐文章 */} - + {post.type === 'Post' && } {/* 标签列表 */} -
- {post.tagItems && ( -
-
- {locale.COMMON.TAGS}: -
- {post.tagItems.map(tag => ( - - ))} + {post.type === 'Post' && ( +
+ {post.tagItems && ( +
+
+ {locale.COMMON.TAGS}: +
+ {post.tagItems.map(tag => ( + + ))} +
+ )} +
+
- )} -
- -
-
+
+ )} - + {post.type === 'Post' && } } {/* 评论互动 */}