feat(v2): add docs pagination_label frontmatter (#4982)

* feat(v2): add docs pagination_label frontmatter

* feat(v2): add docs pagination_label frontmatter

* feat(v2): add docs pagination_label frontmatter
This commit is contained in:
Sébastien Lorber 2021-06-16 12:03:46 +02:00 committed by GitHub
parent 41d9288e3d
commit 32e76f1cc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 25 additions and 10 deletions

View file

@ -204,7 +204,10 @@ export default function pluginContentDocs(
const toDocNavLink = (navDocId: string): DocNavLink => {
const {title, permalink, frontMatter} = docsBaseById[navDocId];
return {
title: frontMatter.sidebar_label ?? title,
title:
frontMatter.pagination_label ??
frontMatter.sidebar_label ??
title,
permalink,
};
};