From 2ce88eef04c5dc7aa0009fccd2920f74e75c394f Mon Sep 17 00:00:00 2001
From: tangly1024
Date: Tue, 11 Jan 2022 16:47:56 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=96=87=E7=AB=A0=E6=BA=A2?=
=?UTF-8?q?=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/BlogPostCard.js | 33 +++++++++++++++++----------------
pages/index.js | 1 -
pages/page/[page].js | 1 -
3 files changed, 17 insertions(+), 18 deletions(-)
diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js
index 785dcd18..cbe94dbd 100644
--- a/components/BlogPostCard.js
+++ b/components/BlogPostCard.js
@@ -43,27 +43,28 @@ const BlogPostCard = ({ post, showSummary }) => {
{post.summary}
}
- {showPreview && post?.blockMap &&
+ {showPreview && post?.blockMap &&
+ bodyClassName='max-h-full'
+ recordMap={post.blockMap}
+ mapPageUrl={mapPageUrl}
+ components={{
+ equation: Equation,
+ code: Code,
+ collectionRow: CollectionRow,
+ collection: Collection
+ }}
+ />
}
-
-
-
+
{BLOG.home?.showPostCover && post?.page_cover && (
diff --git a/pages/index.js b/pages/index.js
index 080cc3c5..f48253dd 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -33,7 +33,6 @@ export async function getStaticProps () {
post.blockMap = blockMap
}
}
- console.log('加载文章预览完成')
}
return {
diff --git a/pages/page/[page].js b/pages/page/[page].js
index ac2fe86a..ccf23bc8 100644
--- a/pages/page/[page].js
+++ b/pages/page/[page].js
@@ -59,7 +59,6 @@ export async function getStaticProps ({ params: { page } }) {
post.blockMap = blockMap
}
}
- console.log('加载文章预览完成')
return {
props: {