mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 12:47:14 +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="viewport" content="width=device-width" />
|
||||||
<meta name="generator" content="Docusaurus" />
|
<meta name="generator" content="Docusaurus" />
|
||||||
<meta name="description" content={this.props.description} />
|
<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:title" content={this.props.title} />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content={this.props.url} />
|
<meta property="og:url" content={this.props.url} />
|
||||||
|
|
|
@ -61,6 +61,8 @@ class Site extends React.Component {
|
||||||
description={description}
|
description={description}
|
||||||
title={title}
|
title={title}
|
||||||
url={url}
|
url={url}
|
||||||
|
language={this.props.language}
|
||||||
|
version={this.props.version}
|
||||||
/>
|
/>
|
||||||
<body
|
<body
|
||||||
className={classNames({
|
className={classNames({
|
||||||
|
|
Loading…
Add table
Reference in a new issue