This repository was archived by the owner on Aug 13, 2021. It is now read-only.
File tree 1 file changed +16
-5
lines changed
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 6
6
<% /* Viewport tag for sensible mobile support */ %>
7
7
<meta name =" viewport" content =" width=device-width, initial-scale=1, maximum-scale=1" >
8
8
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
+ < % } %>
14
25
15
26
<% /*
16
27
Stylesheets
You can’t perform that action at this time.
0 commit comments