mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
Merge branch 'master' of https://github.com/facebookexperimental/Docusaurus into website
This commit is contained in:
commit
63e3e31117
11 changed files with 277 additions and 120 deletions
|
@ -16,8 +16,8 @@ const readCategories = require("../server/readCategories.js");
|
|||
|
||||
class DocsSidebar extends React.Component {
|
||||
render() {
|
||||
let layout = this.props.metadata.layout;
|
||||
let docsCategories = readCategories(layout);
|
||||
let sidebar = this.props.metadata.sidebar;
|
||||
let docsCategories = readCategories(sidebar);
|
||||
return (
|
||||
<Container className="docsNavContainer" id="docsNav" wrapper={false}>
|
||||
<SideNav
|
||||
|
|
|
@ -37,7 +37,11 @@ class Head extends React.Component {
|
|||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={this.props.url} />
|
||||
<meta property="og:description" content={this.props.description} />
|
||||
|
||||
{this.props.config.ogImage &&
|
||||
<meta
|
||||
property="og:image"
|
||||
content={this.props.config.baseUrl + this.props.config.ogImage}
|
||||
/>}
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href={this.props.config.baseUrl + this.props.config.favicon}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue