Skip to content

Commit 4a08d2d

Browse files
stickmyulivz
authored andcommitted
fix: patch for pagination-plugin posts count (#904)
1 parent 2e70850 commit 4a08d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/plugin-pagination/clientPlugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Pagination {
3232

3333
get posts () {
3434
const [start, end] = this._currentPage.interval
35-
return this._posts.slice(start, end)
35+
return this._posts.slice(start, end + 1)
3636
}
3737

3838
get hasPrev () {

0 commit comments

Comments
 (0)