mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 23:16:48 +00:00
@@ -1,6 +1,6 @@
|
||||
import { siteConfig } from '@/lib/config'
|
||||
import { checkStartWithHttp } from '@/lib/utils'
|
||||
import Link from 'next/link'
|
||||
import SmartLink from '@/components/SmartLink'
|
||||
import { useRouter } from 'next/router'
|
||||
import NotionIcon from './NotionIcon'
|
||||
|
||||
@@ -21,7 +21,7 @@ const BlogPostCard = ({ post, className }) => {
|
||||
? post.pageIcon + '&width=88'
|
||||
: post.pageIcon
|
||||
return (
|
||||
<Link
|
||||
<SmartLink
|
||||
href={post?.href}
|
||||
target={checkStartWithHttp(post.slug) ? '_blank' : '_self'}
|
||||
passHref>
|
||||
@@ -44,7 +44,7 @@ const BlogPostCard = ({ post, className }) => {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
</SmartLink>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user