diff --git a/v1/lib/core/DocsLayout.js b/v1/lib/core/DocsLayout.js index 83a62a914af0..25cde3fe4e62 100644 --- a/v1/lib/core/DocsLayout.js +++ b/v1/lib/core/DocsLayout.js @@ -41,9 +41,11 @@ class DocsLayout extends React.Component { const id = metadata.localized_id; const defaultTitle = metadata.title; let DocComponent = Doc; + if (this.props.Doc) { DocComponent = this.props.Doc; } + let updateTime; if (this.props.config.enableUpdateTime) { const filepath = docs.getFilePath(metadata); @@ -88,6 +90,15 @@ class DocsLayout extends React.Component { version={metadata.version} language={metadata.language} /> + {this.props.config.enableUpdateTime && + updateTime && ( +
+ + Last updated: + {updateTime} + +
+ )}
{metadata.previous_id && ( )}
- {this.props.config.enableUpdateTime && - updateTime && ( -

- Last updated: - {updateTime} -

- )} {hasOnPageNav && (