mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-25 17:22:50 +00:00
fix(blog): Fix author paginated page url: `/blog/authors/<author>/page/2` (#11577)
This commit is contained in:
parent
c6a86ff717
commit
c32ed21431
|
|
@ -399,7 +399,7 @@ exports[`buildAllRoutes works for realistic blog post 2`] = `
|
||||||
"listMetadata": {
|
"listMetadata": {
|
||||||
"blogDescription": "Custom blog description",
|
"blogDescription": "Custom blog description",
|
||||||
"blogTitle": "Custom blog title",
|
"blogTitle": "Custom blog title",
|
||||||
"nextPage": "/blog/authors/author1/authors/2",
|
"nextPage": "/blog/authors/author1/page/2",
|
||||||
"page": 1,
|
"page": 1,
|
||||||
"permalink": "/blog/authors/author1",
|
"permalink": "/blog/authors/author1",
|
||||||
"postsPerPage": 2,
|
"postsPerPage": 2,
|
||||||
|
|
@ -429,7 +429,7 @@ exports[`buildAllRoutes works for realistic blog post 2`] = `
|
||||||
],
|
],
|
||||||
"sidebar": "@aliased/data/blog-post-list-prop-default.json",
|
"sidebar": "@aliased/data/blog-post-list-prop-default.json",
|
||||||
},
|
},
|
||||||
"path": "/blog/authors/author1/authors/2",
|
"path": "/blog/authors/author1/page/2",
|
||||||
"props": {
|
"props": {
|
||||||
"author": {
|
"author": {
|
||||||
"count": 3,
|
"count": 3,
|
||||||
|
|
@ -444,7 +444,7 @@ exports[`buildAllRoutes works for realistic blog post 2`] = `
|
||||||
"blogTitle": "Custom blog title",
|
"blogTitle": "Custom blog title",
|
||||||
"nextPage": undefined,
|
"nextPage": undefined,
|
||||||
"page": 2,
|
"page": 2,
|
||||||
"permalink": "/blog/authors/author1/authors/2",
|
"permalink": "/blog/authors/author1/page/2",
|
||||||
"postsPerPage": 2,
|
"postsPerPage": 2,
|
||||||
"previousPage": "/blog/authors/author1",
|
"previousPage": "/blog/authors/author1",
|
||||||
"totalCount": 3,
|
"totalCount": 3,
|
||||||
|
|
|
||||||
|
|
@ -327,7 +327,7 @@ export async function buildAllRoutes({
|
||||||
basePageUrl: author.page.permalink,
|
basePageUrl: author.page.permalink,
|
||||||
blogDescription,
|
blogDescription,
|
||||||
blogTitle,
|
blogTitle,
|
||||||
pageBasePath: authorsBasePath,
|
pageBasePath,
|
||||||
postsPerPageOption: postsPerPage,
|
postsPerPageOption: postsPerPage,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue