mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-25 14:29:36 +01:00
remove an unnecessary slash for nextPagePath for categories pages
This commit is contained in:
parent
3510bf3158
commit
e1a356e659
@ -35,7 +35,7 @@ module.exports = async (graphql, actions) => {
|
|||||||
postsLimit: postsPerPage,
|
postsLimit: postsPerPage,
|
||||||
postsOffset: i * postsPerPage,
|
postsOffset: i * postsPerPage,
|
||||||
prevPagePath: i <= 1 ? categorySlug : `${categorySlug}/page/${i - 1}`,
|
prevPagePath: i <= 1 ? categorySlug : `${categorySlug}/page/${i - 1}`,
|
||||||
nextPagePath: `/${categorySlug}/page/${i + 1}`,
|
nextPagePath: `${categorySlug}/page/${i + 1}`,
|
||||||
hasPrevPage: i !== 0,
|
hasPrevPage: i !== 0,
|
||||||
hasNextPage: i !== numPages - 1
|
hasNextPage: i !== numPages - 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user