mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 23:38:07 +01:00
Merge pull request #352 from SayakaOno/fix-path
remove an unnecessary slash for nextPagePath for categories pages
This commit is contained in:
commit
6e787059ef
@ -35,7 +35,7 @@ module.exports = async (graphql, actions) => {
|
||||
postsLimit: postsPerPage,
|
||||
postsOffset: i * postsPerPage,
|
||||
prevPagePath: i <= 1 ? categorySlug : `${categorySlug}/page/${i - 1}`,
|
||||
nextPagePath: `/${categorySlug}/page/${i + 1}`,
|
||||
nextPagePath: `${categorySlug}/page/${i + 1}`,
|
||||
hasPrevPage: i !== 0,
|
||||
hasNextPage: i !== numPages - 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user