mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-14 08:42:31 +02:00
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:
parent
41d9288e3d
commit
32e76f1cc0
8 changed files with 25 additions and 10 deletions
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue