0396891aa7
Embed Google Analytics only in production
172 lines
8.9 KiB
Plaintext
172 lines
8.9 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="<%= description_for(current_page) %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="<%= image_path("favicons/apple-touch-icon.png") %>">
|
|
<link rel="icon" type="image/png" href="<%= image_path("favicons/favicon-194x194.png") %>" sizes="194x194">
|
|
<link rel="icon" type="image/png" href="<%= image_path("favicons/android-chrome-192x192.png") %>" sizes="192x192">
|
|
<link rel="icon" type="image/png" href="<%= image_path("favicons/favicon-32x32.png") %>" sizes="32x32">
|
|
<link rel="icon" type="image/png" href="<%= image_path("favicons/favicon-16x16.png") %>" sizes="16x16">
|
|
<link rel="manifest" href="/android-manifest.json">
|
|
<link rel="mask-icon" href="<%= image_path("favicons/safari-pinned-tab.svg") %>" color="#25BA81">
|
|
<meta name="apple-mobile-web-app-title" content="HashiCorp Nomad">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="application-name" content="HashiCorp Nomad">
|
|
<meta name="msapplication-config" content="/microsoft-tile.xml" />
|
|
<meta name="msapplication-TileColor" content="#25BA81">
|
|
<meta name="msapplication-TileImage" content="<%= image_path("favicons/mstile-144x144.png") %>">
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:site" content="@HashiCorp" />
|
|
<meta name="twitter:creator" content="@HashiCorp" />
|
|
<meta property="og:url" content="<%= File.join(base_url, current_page.url) %>" />
|
|
<meta property="og:title" content="<%= title_for(current_page) %>" />
|
|
<meta property="og:site_name" content="Nomad by HashiCorp"/>
|
|
<meta property="og:image" content="<%= image_url("og-image.png") %>"/>
|
|
<meta property="og:image:width" content="1200"/>
|
|
<meta property="og:image:height" content="1200"/>
|
|
<meta property="og:description" content="<%= description_for(current_page) %>" />
|
|
|
|
<title><%= title_for(current_page) %></title>
|
|
|
|
<%= stylesheet_link_tag "application" %>
|
|
|
|
<!--[if lt IE 9]>
|
|
<%= javascript_include_tag "ie-compat" %>
|
|
<![endif]-->
|
|
<%= javascript_include_tag "application" %>
|
|
|
|
<% if config[:environment] == :build %>
|
|
<!-- Google Tag Manager -->
|
|
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
})(window,document,'script','dataLayer','GTM-NR2SD7C');</script>
|
|
<% end %>
|
|
|
|
<!-- Typekit script to import Klavika font -->
|
|
<script src="https://use.typekit.net/wxf7mfi.js"></script>
|
|
<script>try{Typekit.load({ async: true });}catch(e){}</script>
|
|
|
|
<%= yield_content :head %>
|
|
</head>
|
|
|
|
<body id="<%= body_id_for(current_page) %>" class="<%= body_classes_for(current_page) %>">
|
|
|
|
<%= mega_nav :nomad %>
|
|
|
|
<div id="header" class="navigation navbar-static-top hidden-print">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="navbar-header">
|
|
<div class="navbar-brand">
|
|
<a href="/">
|
|
<%= inline_svg "logo-text.svg", height: 50, class: "logo" %>
|
|
</a>
|
|
</div>
|
|
<button class="navbar-toggle" type="button">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
</div>
|
|
<div class="buttons hidden-xs">
|
|
<nav class="navigation-links" role="navigation">
|
|
<ul class="main-links nav navbar-nav navbar-right">
|
|
<li><a href="/intro/index.html">Intro</a></li>
|
|
<li><a href="/guides/index.html">Guides</a></li>
|
|
<li><a href="/docs/index.html">Docs</a></li>
|
|
<li><a href="/api/index.html">API</a></li>
|
|
<li><a href="/resources.html">Resources</a></li>
|
|
<li><a href="https://www.hashicorp.com/products/nomad/?utm_source=oss&utm_medium=header-nav&utm_campaign=nomad">Enterprise</a></li>
|
|
<li><a href="https://demo.nomadproject.io">UI Demo</a></li>
|
|
<li>
|
|
<a href="/downloads.html">
|
|
<%= inline_svg "download.svg" %> Download
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://github.com/hashicorp/nomad">
|
|
<%= inline_svg "github.svg" %> GitHub
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%= partial "layouts/sidebar" %>
|
|
|
|
<%= yield %>
|
|
|
|
<div id="footer" class="navigation hidden-print">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<ul class="footer-links nav navbar-nav">
|
|
<li><a href="/intro/index.html">Intro</a></li>
|
|
<li><a href="/guides/index.html">Guides</a></li>
|
|
<li><a href="/docs/index.html">Docs</a></li>
|
|
<li><a href="/api/index.html">API</a></li>
|
|
<li><a href="/resources.html">Resources</a></li>
|
|
<li><a href="https://www.hashicorp.com/products/nomad/?utm_source=oss&utm_medium=header-nav&utm_campaign=nomad">Enterprise</a></li>
|
|
<li><a href="https://demo.nomadproject.io">UI Demo</a></li>
|
|
<li><a href="/security.html">Security</a></li>
|
|
<li><a href="/assets/files/press-kit.zip">Press Kit</a></li>
|
|
</ul>
|
|
<ul class="footer-links nav navbar-nav navbar-right">
|
|
<li><a href="<%= github_url :current_page %>">Edit this page</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<% if config[:environment] == :build %>
|
|
<script>
|
|
// ga async load
|
|
window['GoogleAnalyticsObject'] = 'ga';
|
|
window['ga'] = window['ga'] || function() {
|
|
(window['ga'].q = window['ga'].q || []).push(arguments)
|
|
};
|
|
// analytics.js
|
|
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0";
|
|
analytics.load("<%= segmentId %>");
|
|
analytics.page();
|
|
}}();
|
|
// optinmonster
|
|
var om597a23b9d91a8,om597a23b9d91a8_poll=function(){var b=0;return function(d,c){clearInterval(b);b=setInterval(d,c)}}();
|
|
!function(b,d,c){if(b.getElementById(c))om597a23b9d91a8_poll(function(){if(window.om_loaded&&!om597a23b9d91a8)return om597a23b9d91a8=new OptinMonsterApp,om597a23b9d91a8.init({s:"35109.597a23b9d91a8",staging:0,dev:0,beta:0})},25);else{var e=!1,a=b.createElement(d);a.id=c;a.src="//a.optnmstr.com/app/js/api.min.js";a.async=!0;a.onload=a.onreadystatechange=function(){if(!(e||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState))try{e=om_loaded=!0,om597a23b9d91a8=new OptinMonsterApp,
|
|
om597a23b9d91a8.init({s:"35109.597a23b9d91a8",staging:0,dev:0,beta:0}),a.onload=a.onreadystatechange=null}catch(f){}};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}}(document,"script","omapi-script");
|
|
</script>
|
|
<% end %>
|
|
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "http://schema.org",
|
|
"@type": "Product",
|
|
"name": "Nomad",
|
|
"alternateName": "Nomad by HashiCorp",
|
|
"manufacturer": "HashiCorp",
|
|
"url": "https://www.nomadproject.io",
|
|
"logo": "<%= File.join(base_url, image_path("logo-hashicorp.svg")) %>",
|
|
"sameAs": [
|
|
"https://github.com/hashicorp/nomad"
|
|
]
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|