Skip to content

Commit

Permalink
Prevent search engines from indexing lower environments. Resolves #616.…
Browse files Browse the repository at this point in the history
… (#634)
  • Loading branch information
frano-m committed Feb 20, 2020
1 parent f460ca0 commit 17f7597
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Helmet from 'react-helmet';
import React from 'react';

// App dependencies
import * as EnvironmentService from "../utils/environment.service";
import Banner from './banner/banner';
import Footer from './footer/footer';
import Header from './header/header';
Expand Down Expand Up @@ -39,6 +40,7 @@ class Layout extends React.Component {
<div>
<Helmet>
<title>{pageTitle ? pageTitle : 'HCA Data Portal'}</title>
{EnvironmentService.isProd() ? null : <meta name="robots" content="noindex" />}
<link rel='stylesheet' href='https://use.typekit.net/qhb0geh.css'/>
<link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons'/>
<link rel='stylesheet'
Expand Down

0 comments on commit 17f7597

Please sign in to comment.