Skip to content

Commit

Permalink
feat(www): add docsearch:version meta tag (gatsbyjs#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 gatsbyjs#9159 (comment)
  • Loading branch information
pieh authored and gpetrioli committed Jan 22, 2019
1 parent 85badd8 commit 0ecaac7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/src/components/layout.js
Original file line number Diff line number Diff line change
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 0ecaac7

Please sign in to comment.