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 + }} + />
}
- -
- {locale.COMMON.ARTICLE_DETAIL} - -
- +
+ + {locale.COMMON.ARTICLE_DETAIL} + + +
{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: {