From fea5e8ea17f70fbf20d83339324e51414f17aff1 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Feb 2022 16:11:14 +0800 Subject: [PATCH] =?UTF-8?q?Hexo:=20=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Hexo/components/BlogPostCard.js | 2 +- themes/Hexo/components/BlogPostListPage.js | 2 +- themes/Hexo/components/BlogPostListScroll.js | 2 +- themes/Hexo/components/HeaderArticle.js | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/themes/Hexo/components/BlogPostCard.js b/themes/Hexo/components/BlogPostCard.js index 1e7a332b..6cba3568 100644 --- a/themes/Hexo/components/BlogPostCard.js +++ b/themes/Hexo/components/BlogPostCard.js @@ -9,7 +9,7 @@ import CONFIG_HEXO from '../config_hexo' const BlogPostCard = ({ post, showSummary }) => { const showPreview = CONFIG_HEXO.POST_LIST_PREVIEW && post.blockMap return ( -
+
diff --git a/themes/Hexo/components/BlogPostListPage.js b/themes/Hexo/components/BlogPostListPage.js index b08a0da6..a9ba1289 100644 --- a/themes/Hexo/components/BlogPostListPage.js +++ b/themes/Hexo/components/BlogPostListPage.js @@ -20,7 +20,7 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount }) => { return (
{/* 文章列表 */} -
+
{posts.map(post => ( ))} diff --git a/themes/Hexo/components/BlogPostListScroll.js b/themes/Hexo/components/BlogPostListScroll.js index 53a1d93f..ce23f44c 100644 --- a/themes/Hexo/components/BlogPostListScroll.js +++ b/themes/Hexo/components/BlogPostListScroll.js @@ -55,7 +55,7 @@ const BlogPostListScroll = ({ posts = [], currentSearch, showSummary = CONFIG_HE return
{/* 文章列表 */} -
+
{postsToShow.map(post => ( ))} diff --git a/themes/Hexo/components/HeaderArticle.js b/themes/Hexo/components/HeaderArticle.js index b51df350..84ad8688 100644 --- a/themes/Hexo/components/HeaderArticle.js +++ b/themes/Hexo/components/HeaderArticle.js @@ -40,17 +40,17 @@ export default function HeaderArticle ({ post }) { style={{ backgroundImage: headerImage }} >
-
+
{/* 文章Title */} -
+
{post.title}
-
+
{post.category && <> - + {post.category}