From 1a142b072bc9e55f3b901d8ef5b05f038b35ef9f Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 17 Mar 2022 17:28:45 +0800 Subject: [PATCH] =?UTF-8?q?hexo=20=E5=8D=A1=E7=89=8C=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 | 8 +++----- themes/hexo/config_hexo.js | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js index 1e60f68a..60b5ba64 100644 --- a/themes/hexo/components/BlogPostCard.js +++ b/themes/hexo/components/BlogPostCard.js @@ -14,17 +14,15 @@ const BlogPostCard = ({ post, showSummary }) => {
- + {post.title}
-
{post.date.start_date} -
{(!showPreview || showSummary) &&

@@ -46,7 +44,6 @@ const BlogPostCard = ({ post, showSummary }) => {

}
- {post.category} @@ -68,7 +65,8 @@ const BlogPostCard = ({ post, showSummary }) => { )} -
+ + ) diff --git a/themes/hexo/config_hexo.js b/themes/hexo/config_hexo.js index 4bf7b8af..ef5c2d02 100644 --- a/themes/hexo/config_hexo.js +++ b/themes/hexo/config_hexo.js @@ -11,7 +11,7 @@ const CONFIG_HEXO = { POST_LIST_COVER: true, // 文章封面 POST_LIST_SUMMARY: true, // 文章摘要 - POST_LIST_PREVIEW: false, // 读取文章预览 + POST_LIST_PREVIEW: true, // 读取文章预览 NAV_TYPE: 'autoCollapse', // ['fixed','autoCollapse','normal'] 分别是固定屏幕顶部、屏幕顶部自动折叠,不固定 WIDGET_TO_TOP: true,