Merge branch 'main' into feat/improve-link-detection

This commit is contained in:
tangly1024
2025-07-27 21:18:49 +08:00
committed by GitHub
344 changed files with 1499 additions and 1413 deletions

View File

@@ -1,6 +1,6 @@
import { siteConfig } from '@/lib/config'
import { isHttpLink } 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={isHttpLink(post.slug) ? '_blank' : '_self'}
passHref>
@@ -44,7 +44,7 @@ const BlogPostCard = ({ post, className }) => {
</div>
</div>
</div>
</Link>
</SmartLink>
)
}