Next主题可隐藏头图,并显示icon

This commit is contained in:
tangly
2022-11-18 11:44:12 +08:00
parent 12babbdbca
commit b4398e516e
5 changed files with 38 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import Card from './Card'
import TagItemMini from './TagItemMini'
import CONFIG_NEXT from '../config_next'
import NotionPage from '@/components/NotionPage'
import NotionIcon from '@/components/NotionIcon'
const BlogPostCard = ({ post, showSummary }) => {
const { locale } = useGlobal()
@@ -23,7 +24,7 @@ const BlogPostCard = ({ post, showSummary }) => {
className={`cursor-pointer hover:underline text-3xl ${showPreview ? 'text-center' : ''
} leading-tight text-gray-700 dark:text-gray-100 hover:text-blue-500 dark:hover:text-blue-400`}
>
{post.title}
<NotionIcon icon={post.pageIcon} /> {post.title}
</a>
</Link>