From 7c1b48b92cd42ec1920be45f5776761328b7a5c0 Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Tue, 24 Oct 2017 15:35:56 -0700 Subject: [PATCH] Show doc names instead of previous and next Use the previous and next doc metadata to show docs in the buttons --- lib/core/DocsLayout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/DocsLayout.js b/lib/core/DocsLayout.js index bf0bea199f..50d74ae953 100644 --- a/lib/core/DocsLayout.js +++ b/lib/core/DocsLayout.js @@ -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"} )} @@ -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"}{" "} →