diff --git a/components/Pagination.js b/components/Pagination.js index 78f1c91e..d853a1a1 100644 --- a/components/Pagination.js +++ b/components/Pagination.js @@ -8,7 +8,7 @@ const Pagination = ({ page, showNext }) => { const router = useRouter() const currentPage = +page return ( -
+
{ return (
- +
{/* 侧边菜单 */}
- {(!page || page === 1) && ( -
- ) - } + {(!page || page === 1) && (
)} + {/* 标签 */} {currentTag && (
@@ -93,35 +91,31 @@ const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
)} + {/* 当前搜索 */} {(currentSearch || (page && page !== 1)) && (
- {currentSearch && ( - 搜索关键词: {currentSearch} - )} - {page && page !== 1 && ( - 页 {page} / {totalPages} - )} + {currentSearch && (搜索关键词: {currentSearch})} + {page && page !== 1 && (页 {page} / {totalPages})}

)} - {/* 文章列表 */}
- {/*
*/} + {/* 文章列表 */}
{!postsToShow.length && (

No posts found.

)} {postsToShow.map(post => ( - + ))}
-
- + +