From 164832ff695a3470a7bf0efe9ef3c017f94d3084 Mon Sep 17 00:00:00 2001 From: emengweb Date: Tue, 25 Apr 2023 12:46:00 +0000 Subject: [PATCH] bug fixed --- themes/hexo/LayoutBase.js | 2 +- themes/hexo/components/ArticleRecommend.js | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/themes/hexo/LayoutBase.js b/themes/hexo/LayoutBase.js index 1f9f458b..27c8e1a9 100644 --- a/themes/hexo/LayoutBase.js +++ b/themes/hexo/LayoutBase.js @@ -33,7 +33,7 @@ const FacebookPage = dynamic( * @constructor */ const LayoutBase = props => { - const { children, headerSlot, floatSlot, meta, siteInfo, showTag } = props + const { children, headerSlot, floatSlot, meta, siteInfo } = props const [showFloatButton, switchShow] = useState(false) // const [percent, changePercent] = useState(0) // 页面阅读百分比 const rightAreaSlot = ( diff --git a/themes/hexo/components/ArticleRecommend.js b/themes/hexo/components/ArticleRecommend.js index 446dfb9c..16002347 100644 --- a/themes/hexo/components/ArticleRecommend.js +++ b/themes/hexo/components/ArticleRecommend.js @@ -47,16 +47,12 @@ export default function ArticleRecommend({ recommendPosts, siteInfo }) { style={{ backgroundImage: headerImage }} >
-
-
{post.title}
-
-
- {' '} - {post.tagItems.map(tag => ( -
{selected && } {tag.name + (tag.count ? `(${tag.count})` : '')}
- ))} -
+
+
+ + {post.date?.start_date}
+
{post.title}