upstream #1
@ -86,7 +86,9 @@ export default function ListLayout({ posts, title, initialDisplayPosts = [], pag
|
|||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{pagination && !searchValue && (
|
{pagination &&
|
||||||
|
pagination.totalPages > 1 &&
|
||||||
|
!searchValue(
|
||||||
<Pagination currentPage={pagination.currentPage} totalPages={pagination.totalPages} />
|
<Pagination currentPage={pagination.currentPage} totalPages={pagination.totalPages} />
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
@ -3,7 +3,7 @@ import siteMetadata from '@/data/siteMetadata'
|
|||||||
import ListLayout from '@/layouts/ListLayout'
|
import ListLayout from '@/layouts/ListLayout'
|
||||||
import { PageSeo } from '@/components/SEO'
|
import { PageSeo } from '@/components/SEO'
|
||||||
|
|
||||||
export const POSTS_PER_PAGE = 5
|
export const POSTS_PER_PAGE = 10
|
||||||
|
|
||||||
export async function getStaticProps() {
|
export async function getStaticProps() {
|
||||||
const posts = await getAllFilesFrontMatter('blog')
|
const posts = await getAllFilesFrontMatter('blog')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user