remove an unnecessary slash for nextPagePath for categories pages

This commit is contained in:
Sayaka Ono 2019-08-11 15:48:12 -07:00
parent 3510bf3158
commit e1a356e659

View File

@ -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
} }