feat: add title icon configuration

This commit is contained in:
Femoon
2024-04-21 18:22:33 +08:00
parent bc298255e2
commit 9234b6fb4b
31 changed files with 35 additions and 29 deletions

View File

@@ -35,7 +35,7 @@ const BlogPostCard = ({ post, showSummary }) => {
{siteConfig('MEDIUM_POST_LIST_COVER', null, CONFIG) && <div className='w-full max-h-96 object-cover overflow-hidden mb-2'>
<LazyImage src={post.pageCoverThumbnail} style={post.pageCoverThumbnail ? {} : { height: '0px' }} className='w-full max-h-96 object-cover hover:scale-125 duration-150' />
</div>}
<NotionIcon icon={post.pageIcon} />{post.title}
{siteConfig('POST_TITLE_ICON') && <NotionIcon icon={post.pageIcon} />}{post.title}
</h2>
</Link>