Add option to avoid indexing site (#142)

This commit is contained in:
Ricky Vetter 2017-10-18 11:35:30 -07:00 committed by Joel Marcey
parent a26bba14c6
commit 768ed88978
3 changed files with 5 additions and 1 deletions

View file

@ -29,7 +29,7 @@ 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} />
<meta name="robots" content="noindex" />
{this.props.config.noIndex && <meta name="robots" content="noindex" />}
{this.props.config.ogImage && (
<meta
property="og:image"