We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59f758d + ed0de1c commit 0c2aab8Copy full SHA for 0c2aab8
packages/typescriptlang-org/src/components/HeadSEO.tsx
@@ -20,10 +20,6 @@ export const HeadSEO = (props: SeoProps) => {
20
// yarn workspace typescriptlang-org setup-staging
21
const staging = false;
22
23
- if (staging) {
24
- ogTags["robots"] = "noindex"
25
- }
26
-
27
// do we want localized pages to be the english version?
28
//{seo.url && <meta property="og:url" content={seo.url} />}
29
@@ -37,6 +33,7 @@ export const HeadSEO = (props: SeoProps) => {
37
33
<>
38
34
<Helmet title={props.title} titleTemplate={"TypeScript: %s"}>
39
35
<meta name="description" key="description" content={props.description} />
36
+ { staging ? <meta name="robots" content="noindex" />: null }
40
{
41
Object.keys(ogTags).map(k => <meta key={k} property={k} content={ogTags[k]} />)
42
}
0 commit comments