mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 15:10:19 +00:00
更改字段
This commit is contained in:
@@ -11,7 +11,7 @@ import CONFIG from '../config'
|
||||
export const BlogItem = props => {
|
||||
const { post } = props
|
||||
const { NOTION_CONFIG } = useGlobal()
|
||||
const showPageCover = siteConfig('SIMPLE_POST_COVER_ENABLE', false, CONFIG)
|
||||
const showPageCover = siteConfig('TYPOGRAPHY_POST_COVER_ENABLE', false, CONFIG)
|
||||
const showPreview =
|
||||
siteConfig('POST_LIST_PREVIEW', false, NOTION_CONFIG) && post.blockMap
|
||||
return (
|
||||
@@ -81,11 +81,10 @@ export const BlogItem = props => {
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main className='text-[var(--primary-color)] dark:text-gray-300 leading-normal mb-6'>
|
||||
<main className='text-[var(--primary-color)] dark:text-gray-300 mb-6 line-clamp-4 overflow-hidden text-ellipsis relative leading-[1.7]'>
|
||||
{!showPreview && (
|
||||
<>
|
||||
{post.summary}
|
||||
{post.summary && <span>...</span>}
|
||||
</>
|
||||
)}
|
||||
{showPreview && post?.blockMap && (
|
||||
|
||||
Reference in New Issue
Block a user