mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-14 17:47:40 +02:00
add language & version meta for algolia docsearch (#787)
This commit is contained in:
parent
df42926242
commit
0eb6612b58
2 changed files with 8 additions and 0 deletions
|
@ -42,6 +42,12 @@ class Head extends React.Component {
|
|||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="generator" content="Docusaurus" />
|
||||
<meta name="description" content={this.props.description} />
|
||||
{this.props.version && (
|
||||
<meta name="docsearch:version" content={this.props.version} />
|
||||
)}
|
||||
{this.props.language && (
|
||||
<meta name="docsearch:language" content={this.props.language} />
|
||||
)}
|
||||
<meta property="og:title" content={this.props.title} />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={this.props.url} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue