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,4 +1,4 @@
import Link from 'next/link'
import SmartLink from '@/components/SmartLink'
/**
* 上一篇,下一篇文章
@@ -11,22 +11,22 @@ export default function BlogAround ({ prev, next }) {
}
return (
<section className='text-gray-800 border-t dark:text-gray-300 flex flex-wrap lg:flex-nowrap lg:space-x-10 justify-between py-2'>
{prev && <Link
{prev && <SmartLink
href={`/${prev.slug}`}
passHref
className='text-sm py-3 text-gray-500 hover:underline cursor-pointer'>
<i className='mr-1 fas fa-angle-double-left' />{prev.title}
</Link>}
{next && <Link
</SmartLink>}
{next && <SmartLink
href={`/${next.slug}`}
passHref
className='text-sm flex py-3 text-gray-500 hover:underline cursor-pointer'>
{next.title}
<i className='ml-1 my-1 fas fa-angle-double-right' />
</Link>}
</SmartLink>}
</section>
);
}