Skip to content

Commit 0c2aab8

Browse files
author
Orta Therox
authored
Merge pull request #2206 from microsoft/staging_head_tag
Changes the staging meta tags - fixes #2199
2 parents 59f758d + ed0de1c commit 0c2aab8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/typescriptlang-org/src/components/HeadSEO.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ export const HeadSEO = (props: SeoProps) => {
2020
// yarn workspace typescriptlang-org setup-staging
2121
const staging = false;
2222

23-
if (staging) {
24-
ogTags["robots"] = "noindex"
25-
}
26-
2723
// do we want localized pages to be the english version?
2824
//{seo.url && <meta property="og:url" content={seo.url} />}
2925

@@ -37,6 +33,7 @@ export const HeadSEO = (props: SeoProps) => {
3733
<>
3834
<Helmet title={props.title} titleTemplate={"TypeScript: %s"}>
3935
<meta name="description" key="description" content={props.description} />
36+
{ staging ? <meta name="robots" content="noindex" />: null }
4037
{
4138
Object.keys(ogTags).map(k => <meta key={k} property={k} content={ogTags[k]} />)
4239
}

0 commit comments

Comments
 (0)