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

@@ -44,7 +44,7 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
href={url}
passHref
className={' group-hover:text-indigo-700 dark:hover:text-yellow-700 dark:group-hover:text-yellow-600 text-black dark:text-gray-100 line-clamp-2 replace cursor-pointer text-xl font-extrabold leading-tight'}>
<NotionIcon icon={post.pageIcon} /><span className='menu-link '>{post.title}</span>
{siteConfig('POST_TITLE_ICON') && <NotionIcon icon={post.pageIcon} />}<span className='menu-link '>{post.title}</span>
</Link>
</header>