feat: change all Link component to SmartLink

Close #3512
This commit is contained in:
anime
2025-07-24 15:06:39 +08:00
parent fc4817e669
commit ba951cd2aa
338 changed files with 1381 additions and 1381 deletions

View File

@@ -1,6 +1,6 @@
/* eslint-disable @next/next/no-img-element */
import { siteConfig } from '@/lib/config'
import Link from 'next/link'
import SmartLink from '@/components/SmartLink'
/**
* 博文列表
@@ -41,13 +41,13 @@ export const Blog = ({ posts }) => {
data-wow-delay='.1s'>
<div className='mb-8 overflow-hidden rounded-[5px]'>
{item.pageCoverThumbnail && (
<Link href={item?.href} className='block'>
<SmartLink href={item?.href} className='block'>
<img
src={item.pageCoverThumbnail}
alt={item.title}
className='w-full transition group-hover:rotate-6 group-hover:scale-125'
/>
</Link>
</SmartLink>
)}
</div>
<div>
@@ -55,11 +55,11 @@ export const Blog = ({ posts }) => {
{item.publishDay}
</span>
<h3>
<Link
<SmartLink
href={item?.href}
className='mb-4 inline-block text-xl font-semibold text-dark hover:text-primary dark:text-white dark:hover:text-primary sm:text-2xl lg:text-xl xl:text-2xl'>
{item.title}
</Link>
</SmartLink>
</h3>
<p className='max-w-[370px] text-base text-body-color dark:text-dark-6'>
{item.summary}