mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
Show doc names instead of previous and next
Use the previous and next doc metadata to show docs in the buttons
This commit is contained in:
parent
2b7a35dc3d
commit
7c1b48b92c
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ class DocsLayout extends React.Component {
|
|||
{i18n
|
||||
? translation[this.props.metadata.language][
|
||||
"localized-strings"
|
||||
]["previous"] || "Previous"
|
||||
][metadata.previous_id] || metadata.previous_id
|
||||
: "Previous"}
|
||||
</a>
|
||||
)}
|
||||
|
@ -74,7 +74,7 @@ class DocsLayout extends React.Component {
|
|||
{i18n
|
||||
? translation[this.props.metadata.language][
|
||||
"localized-strings"
|
||||
]["next"] || "Next"
|
||||
][metadata.next_id] || metadata.next_id
|
||||
: "Next"}{" "}
|
||||
→
|
||||
</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue