diff --git a/themes/next/components/PaginationNumber.js b/themes/next/components/PaginationNumber.js index f4feaa61..808dd217 100644 --- a/themes/next/components/PaginationNumber.js +++ b/themes/next/components/PaginationNumber.js @@ -11,7 +11,7 @@ import { useRouter } from 'next/router' const PaginationNumber = ({ page, totalPage }) => { const router = useRouter() const currentPage = +page - const showNext = page !== totalPage + const showNext = currentPage !== totalPage const pagePrefix = router.asPath.split('?')[0].replace(/\/page\/[1-9]\d*/, '').replace(/\/$/, '') const pages = generatePages(pagePrefix, page, currentPage, totalPage) @@ -21,7 +21,7 @@ const PaginationNumber = ({ page, totalPage }) => { data-aos-duration="300" data-aos-once="false" data-aos-anchor-placement="top-bottom" - className="my-5 flex justify-center items-end font-medium text-black hover:shadow-xl duration-500 bg-white dark:bg-hexo-black-gray dark:text-gray-300 py-3 shadow space-x-2"> + className="my-5 flex justify-center items-end font-medium text-black hover:shadow-xl duration-200 transition-all bg-white dark:bg-hexo-black-gray dark:text-gray-300 py-3 shadow space-x-2"> {/* 上一页 */} {