upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit 2e5a3a5a9a - Show all commits

View File

@ -86,7 +86,9 @@ export default function ListLayout({ posts, title, initialDisplayPosts = [], pag
})}
</ul>
</div>
{pagination && !searchValue && (
{pagination &&
pagination.totalPages > 1 &&
!searchValue(
<Pagination currentPage={pagination.currentPage} totalPages={pagination.totalPages} />
)}
</>

View File

@ -3,7 +3,7 @@ import siteMetadata from '@/data/siteMetadata'
import ListLayout from '@/layouts/ListLayout'
import { PageSeo } from '@/components/SEO'
export const POSTS_PER_PAGE = 5
export const POSTS_PER_PAGE = 10
export async function getStaticProps() {
const posts = await getAllFilesFrontMatter('blog')