From fea5e8ea17f70fbf20d83339324e51414f17aff1 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Feb 2022 16:11:14 +0800 Subject: [PATCH 1/4] =?UTF-8?q?Hexo:=20=E6=A0=B7=E5=BC=8F=E5=BE=AE?= =?UTF-8?q?=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} From c40b7c32a713e8725beb54fdac99f0c49f359274 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Feb 2022 22:14:45 +0800 Subject: [PATCH 2/4] Update index.js --- themes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/index.js b/themes/index.js index 29af6e2a..e9b63872 100644 --- a/themes/index.js +++ b/themes/index.js @@ -3,7 +3,7 @@ */ // export * from './Empty' // 空主题 -// export * from './NEXT' +export * from './NEXT' // export * from './Fukasawa' // export * from './Hexo' -export * from './Hexo' +// export * from './Medium' From 2daca9ab01e14f2685b69063dacf51f51398ddff Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Feb 2022 22:53:29 +0800 Subject: [PATCH 3/4] Update LayoutTag.js --- themes/NEXT/LayoutTag.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/themes/NEXT/LayoutTag.js b/themes/NEXT/LayoutTag.js index 47d0580b..2e7addfc 100644 --- a/themes/NEXT/LayoutTag.js +++ b/themes/NEXT/LayoutTag.js @@ -15,13 +15,9 @@ export const LayoutTag = (props) => { type: 'website' } - // 将当前选中的标签置顶🔝 - const currentTag = tags?.find(r => r?.name === tag) - const newTags = currentTag ? [currentTag].concat(tags.filter(r => r?.name !== tag)) : tags.filter(r => r?.name !== tag) - return - +
From 631dc0c8dd0b2e317d2c0411be23d73606a28b83 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Feb 2022 23:07:20 +0800 Subject: [PATCH 4/4] Update ArticleDetail.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 图标 --- themes/NEXT/components/ArticleDetail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/NEXT/components/ArticleDetail.js b/themes/NEXT/components/ArticleDetail.js index ae430539..194020dd 100644 --- a/themes/NEXT/components/ArticleDetail.js +++ b/themes/NEXT/components/ArticleDetail.js @@ -91,7 +91,7 @@ export default function ArticleDetail (props) { )}
- +   |