Skip to content

Commit

Permalink
fix($plugin-pagination): won't work when perPagePosts is 1 and total …
Browse files Browse the repository at this point in the history
…posts is 2 (#1176)
  • Loading branch information
lihaoze authored and ulivz committed Jan 15, 2019
1 parent d160e68 commit 8735d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/plugin-pagination/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function getIntervallers (max, interval) {
const arr = [...Array(count)]
return arr.map((v, index) => {
const start = index * interval
const end = (index + 1) * interval - 1
const end = (index + 1) * interval
return [start, end > max ? max : end]
})
}
Expand Down

0 comments on commit 8735d2c

Please sign in to comment.