mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-27 15:10:00 +00:00
@@ -1,5 +1,5 @@
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import Link from 'next/link'
|
||||
import SmartLink from '@/components/SmartLink'
|
||||
|
||||
/**
|
||||
* 上一篇,下一篇文章
|
||||
@@ -15,7 +15,7 @@ export default function ArticleAround({ prev, next }) {
|
||||
|
||||
return (
|
||||
<section className='text-gray-800 dark:text-gray-400 flex items-center justify-between gap-x-3 my-4'>
|
||||
<Link
|
||||
<SmartLink
|
||||
href={prev.href}
|
||||
passHref
|
||||
className='rounded border w-full h-20 px-3 cursor-pointer justify-between items-center flex hover:text-green-500 duration-300'>
|
||||
@@ -24,9 +24,9 @@ export default function ArticleAround({ prev, next }) {
|
||||
<div>{locale.COMMON.PREV_POST}</div>
|
||||
<div>{prev.title}</div>
|
||||
</div>
|
||||
</Link>
|
||||
</SmartLink>
|
||||
|
||||
<Link
|
||||
<SmartLink
|
||||
href={next.href}
|
||||
passHref
|
||||
className='rounded border w-full h-20 px-3 cursor-pointer justify-between items-center flex hover:text-green-500 duration-300'>
|
||||
@@ -35,7 +35,7 @@ export default function ArticleAround({ prev, next }) {
|
||||
<div> {next.title}</div>
|
||||
</div>
|
||||
<i className='ml-1 my-1 fas fa-angle-right' />
|
||||
</Link>
|
||||
</SmartLink>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user