更改字段

This commit is contained in:
Blackberry009
2025-06-18 11:16:58 +08:00
parent 088ae612be
commit b2714fa4a5
11 changed files with 50 additions and 219 deletions

View File

@@ -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 && (