Skip to content
This repository was archived by the owner on Aug 13, 2021. It is now read-only.

Commit a62a941

Browse files
committed
Remove robots.txt and update layout.ejs
1 parent e2b43c6 commit a62a941

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

views/layouts/layout.ejs

+16-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,22 @@
66
<% /* Viewport tag for sensible mobile support */ %>
77
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
88

9-
<% /* Script tags should normally be included further down the page- but scripts
10-
that load fonts are a special exception to the rule. (We include them up here
11-
above the «body» to prevent the page flickering when fonts load.) */ %>
12-
<!-- Font Awesome -->
13-
<script src="https://use.fontawesome.com/96cbd61ead.js"></script>
9+
<% /* Script tags should normally be included further down the page- but any
10+
scripts that load fonts (e.g. Fontawesome ≥v5) are special exceptions to the
11+
rule. (Include them up here along with any hard-coded «link» tags for Typekit,
12+
Google Fonts, etc. - above the «body» to prevent the page flickering when fonts
13+
load.) */ %>
14+
15+
<% /* Certain scripts, normally analytics tools like Google Tag Manager and
16+
Google Analytics, should only be included in production: */
17+
if (sails.config.environment === 'production') { %>
18+
<!-- Google Analytics, Google Tag Manager, etc. -->
19+
<% }
20+
/* Otherwise, any such scripts are excluded, and we instead inject a
21+
robots/noindex meta tag to help prevent any unwanted visits from search engines. */
22+
else { %>
23+
<meta name="robots" content="noindex">
24+
<% } %>
1425

1526
<% /*
1627
Stylesheets

0 commit comments

Comments
 (0)