Skip to content

Commit 91ebd10

Browse files
committed
feat($pagination): correct meta title.
1 parent 1b234b3 commit 91ebd10

File tree

1 file changed

+5
-2
lines changed
  • packages/@vuepress/plugin-pagination

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@ module.exports = (options, ctx) => ({
4646
}
4747

4848
ctx.pagination = pagination
49-
pagination.paginationPages.forEach(({ path }) => {
49+
pagination.paginationPages.forEach(({ path }, index) => {
5050
if (path === '/') {
5151
return
5252
}
5353
ctx.addPage({
5454
permalink: path,
55-
frontmatter: { layout }
55+
frontmatter: {
56+
layout,
57+
title: `Page ${index + 1}`
58+
}
5659
})
5760
})
5861
},

0 commit comments

Comments
 (0)