Skip to content

Commit

Permalink
feat(www): add docsearch:version meta tag (#9186)
Browse files Browse the repository at this point in the history
add meta tag so docsearch can index both v1 and v2 websites

see #9159 (comment)
  • Loading branch information
pieh committed Oct 17, 2018
1 parent 34e72bf commit f8ebc6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/src/components/layout.js
Expand Up @@ -151,6 +151,7 @@ class DefaultLayout extends React.Component {
<meta name="twitter:site" content="@gatsbyjs" />
<meta name="og:type" content="website" />
<meta name="og:site_name" content="GatsbyJS" />
<meta name="docsearch:version" content="2.0" />
<link
rel="canonical"
href={`https://gatsbyjs.org${this.props.location.pathname}`}
Expand Down

0 comments on commit f8ebc6e

Please sign in to comment.