mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 23:16:52 +00:00
previewLine设置
This commit is contained in:
@@ -33,7 +33,7 @@ const BlogPostCard = ({ post, showSummary }) => {
|
||||
{post.summary}
|
||||
</p>}
|
||||
|
||||
{showPreview && post?.blockMap && <div className='overflow-ellipsis truncate'>
|
||||
{showPreview && <div className='overflow-ellipsis truncate'>
|
||||
<NotionRenderer
|
||||
bodyClassName='max-h-full'
|
||||
recordMap={post.blockMap}
|
||||
@@ -61,7 +61,7 @@ const BlogPostCard = ({ post, showSummary }) => {
|
||||
|
||||
</div>
|
||||
|
||||
{CONFIG_HEXO.POST_LIST_COVER && post?.page_cover && (
|
||||
{CONFIG_HEXO.POST_LIST_COVER && !showPreview && post?.page_cover && (
|
||||
<Link href={`${BLOG.PATH}/article/${post.slug}`} passHref>
|
||||
<a className='w-full relative duration-200 rounded-t-xl lg:rounded-r-xl lg:rounded-t-none cursor-pointer transform overflow-hidden'>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
|
||||
Reference in New Issue
Block a user