mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
Add siteConfig option for Open Graph image
This commit is contained in:
parent
dfeaac74cc
commit
9e70055452
2 changed files with 6 additions and 2 deletions
|
@ -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.ogImage &&
|
||||
<meta
|
||||
property="og:image"
|
||||
content={this.props.config.baseUrl + this.props.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