Skip to content

Commit

Permalink
fix: patch for pagination-plugin posts count (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
stickmy authored and ulivz committed Oct 6, 2018
1 parent 2e70850 commit 4a08d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/plugin-pagination/clientPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Pagination {

get posts () {
const [start, end] = this._currentPage.interval
return this._posts.slice(start, end)
return this._posts.slice(start, end + 1)
}

get hasPrev () {
Expand Down

0 comments on commit 4a08d2d

Please sign in to comment.