From ef324c227566cefc0eed777140962d4bbf5a4616 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 24 Dec 2021 17:15:57 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E5=AD=97=E6=95=B0=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=8E=92=E7=8F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ArticleDetail.js | 67 ++++++++++++++++++++----------------- components/WordCount.js | 2 +- 2 files changed, 37 insertions(+), 32 deletions(-) diff --git a/components/ArticleDetail.js b/components/ArticleDetail.js index 0eee4451..44c0444a 100644 --- a/components/ArticleDetail.js +++ b/components/ArticleDetail.js @@ -58,44 +58,49 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n {' '} {post.title} -
-
- - - - {post.category} - - - {post.type[0] !== 'Page' && ( - - - {date} - - - )} -
- -   - -
-
- -

+

{post.summary}

-
+
+
+ + + + {post.category} + + + | + + {post.type[0] !== 'Page' && (<> + + + {date} + + + | + )} + +
+ +   + + | +
+
+
+
+
+
+ {/* Notion文章主体 */} diff --git a/components/WordCount.js b/components/WordCount.js index 5c0e75c1..1f814a24 100644 --- a/components/WordCount.js +++ b/components/WordCount.js @@ -12,7 +12,7 @@ export default function WordCount () { }) return
- 本文字数 0  |  阅读时长 ≈ 0 分钟 + 本文字数 0  |  阅读时长 ≈ 0 分钟
}