diff --git a/themes/hexo/components/BlogPostListPage.js b/themes/hexo/components/BlogPostListPage.js index 038bb322..4964f024 100644 --- a/themes/hexo/components/BlogPostListPage.js +++ b/themes/hexo/components/BlogPostListPage.js @@ -13,7 +13,7 @@ import BlogPostListEmpty from './BlogPostListEmpty' */ const BlogPostListPage = ({ page = 1, posts = [], postCount }) => { const totalPage = Math.ceil(postCount / BLOG.POSTS_PER_PAGE) - const showPagination = posts.length === BLOG.POSTS_PER_PAGE + const showPagination = postCount >= BLOG.POSTS_PER_PAGE if (!posts || posts.length === 0) { return @@ -26,7 +26,7 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount }) => { ))} - {showPagination && } + {showPagination && } ) } diff --git a/themes/next/components/ArticleDetail.js b/themes/next/components/ArticleDetail.js index ba49b0a6..094b6b22 100644 --- a/themes/next/components/ArticleDetail.js +++ b/themes/next/components/ArticleDetail.js @@ -25,7 +25,7 @@ export default function ArticleDetail(props) { return (
{showArticleInfo &&
diff --git a/themes/next/components/Toc.js b/themes/next/components/Toc.js index ce83e41b..adc4f7f6 100644 --- a/themes/next/components/Toc.js +++ b/themes/next/components/Toc.js @@ -60,10 +60,10 @@ const Toc = ({ toc }) => { return
- +
-