mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Update BlogPostCard.js
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import LazyImage from '@/components/LazyImage'
|
||||
import NotionIcon from '@/components/NotionIcon'
|
||||
import NotionIcon from './NotionIcon'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
import Link from 'next/link'
|
||||
import CONFIG from '../config'
|
||||
@@ -83,9 +83,9 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
|
||||
}>
|
||||
{siteConfig('POST_TITLE_ICON') && (
|
||||
<NotionIcon
|
||||
icon={post.pageIcon}
|
||||
className="w-6 h-6 mr-1 align-middle transform translate-y-[-8%]" // 这里控制图标的大小和位置
|
||||
/>
|
||||
icon={post.pageIcon}
|
||||
className="heo-icon w-6 h-6 mr-1 align-middle transform translate-y-[-8%]" // 专门为 Heo 主题的图标设置样式
|
||||
/>
|
||||
)}
|
||||
<span className='menu-link '>{post.title}</span>
|
||||
</Link>
|
||||
@@ -112,4 +112,4 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
|
||||
)
|
||||
}
|
||||
|
||||
export default BlogPostCard
|
||||
export default BlogPostCard
|
||||
|
||||
Reference in New Issue
Block a user