Skip to content

Commit 8a27f8e

Browse files
authored
Merge pull request #442 from datacamp/dc-fix-stagingIndex
Make RDocs staging noindexed!
2 parents 77d126a + a28aa9d commit 8a27f8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

views/layout.ejs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
<link href="<%= data.canonicalLink %>" rel="canonical" />
2020
<% } %>
2121

22+
<!-- No index if not production -->
23+
<% if(process.env.NODE_ENV !== 'production') { %>
24+
<meta name="robots" content="noindex">
25+
<% } %>
26+
2227
<!--STYLES-->
2328
<link rel="stylesheet" href="/styles/application.css">
2429
<link rel="stylesheet" href="/styles/widgets/mono-blue.css">

0 commit comments

Comments
 (0)