mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +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
|
{i18n
|
||||||
? translation[this.props.metadata.language][
|
? translation[this.props.metadata.language][
|
||||||
"localized-strings"
|
"localized-strings"
|
||||||
]["previous"] || "Previous"
|
][metadata.previous_id] || metadata.previous_id
|
||||||
: "Previous"}
|
: "Previous"}
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
|
@ -74,7 +74,7 @@ class DocsLayout extends React.Component {
|
||||||
{i18n
|
{i18n
|
||||||
? translation[this.props.metadata.language][
|
? translation[this.props.metadata.language][
|
||||||
"localized-strings"
|
"localized-strings"
|
||||||
]["next"] || "Next"
|
][metadata.next_id] || metadata.next_id
|
||||||
: "Next"}{" "}
|
: "Next"}{" "}
|
||||||
→
|
→
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue