open-consul/website/source/layouts/layout.erb

147 lines
8.0 KiB
Plaintext
Raw Normal View History

<!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-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">
2017-04-05 19:57:14 +00:00
<link rel="mask-icon" href="<%= image_path("favicons/safari-pinned-tab.svg") %>" color="#961D59">
<meta name="msapplication-config" content="/microsoft-tile.xml" />
<meta name="theme-color" content="#ffffff">
2017-04-05 19:57:14 +00:00
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@HashiCorp" />
<meta name="twitter:creator" content="@HashiCorp" />
<meta property="og:type" content="website" />
2017-04-05 19:57:14 +00:00
<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="Consul by HashiCorp"/>
<meta property="og:image" content="<%= image_url("og-image.png") %>"/>
<meta property="og:description" content="<%= description_for(current_page) %>" />
<title><%= title_for(current_page) %></title>
<!-- Stylesheets -->
<link rel="stylesheet" href="https://use.typekit.net/ypp5bnp.css">
<%= stylesheet_link_tag "application" %>
<!-- Site scripts -->
<!--[if lt IE 9]><%= javascript_include_tag "ie-compat", defer: true %><![endif]-->
<%= javascript_include_tag "consul-connect/vendor/intersection-observer-polyfill", defer: true %>
<%= javascript_include_tag "consul-connect/vendor/siema.min", defer: true %>
<%= javascript_include_tag "consul-connect/vendor/classlist-polyfill.min", defer: true %>
<%= javascript_include_tag "application", defer: true %>
<!-- Analytics scrpts -->
<script defer>
!function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],e.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),e.push(a),e}};for(var t=0;t<e.methods.length;t++){var a=e.methods[t];e[a]=e.factory(a)}e.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+e+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(t,a)},e.SNIPPET_VERSION="4.0.0",e.load("<%= segmentId %>")}}();var om597a24292a958,om597a24292a958_poll=function(){var e=0;return function(t,a){clearInterval(e),e=setInterval(t,a)}}();!function(e,t,a){if(e.getElementById(a))om597a24292a958_poll(function(){if(window.om_loaded&&!om597a24292a958)return(om597a24292a958=new OptinMonsterApp).init({s:"35109.597a24292a958",staging:0,dev:0,beta:0})},25);else{var n=!1,o=e.createElement("script");o.id=a,o.src="//a.optnmstr.com/app/js/api.min.js",o.async=!0,o.onload=o.onreadystatechange=function(){if(!(n||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState))try{n=om_loaded=!0,(om597a24292a958=new OptinMonsterApp).init({s:"35109.597a24292a958",staging:0,dev:0,beta:0}),o.onload=o.onreadystatechange=null}catch(e){}},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(o)}}(document,0,"omapi-script");
</script>
<%= yield_content :head %>
</head>
<body id="<%= body_id_for(current_page) %>" class="<%= body_classes_for(current_page) %>">
<%= mega_nav :consul %>
<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">
2017-04-04 16:33:22 +00:00
<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>
2018-06-22 19:18:15 +00:00
<div class="buttons hidden-xs hidden-sm">
<nav class="navigation-links" role="navigation">
<ul class="main-links nav navbar-nav navbar-right">
2018-06-22 19:18:15 +00:00
<li><span>Use Cases<svg width="9" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M8.811 1.067a.612.612 0 0 0 0-.884.655.655 0 0 0-.908 0L4.5 3.491 1.097.183a.655.655 0 0 0-.909 0 .615.615 0 0 0 0 .884l3.857 3.75a.655.655 0 0 0 .91 0l3.856-3.75z" fill="#252937" fill-rule="evenodd"/></svg></span>
<ul class="dropdown">
<li><a href="/discovery.html">Service Discovery</a></li>
<li><a href="/mesh.html">Service Mesh</a></li>
2018-06-22 19:18:15 +00:00
</ul>
</li>
2018-06-23 15:24:43 +00:00
<li><a href="/intro/index.html">Intro</a></li>
<li><a href="https://learn.hashicorp.com/consul?utm_source=consul.io&utm_medium=docs&utm_content=top-nav">Learn</a></li>
<li><a href="/docs/index.html">Docs</a></li>
2017-04-04 16:33:22 +00:00
<li><a href="/api/index.html">API</a></li>
<li><a href="/community.html">Community</a></li>
<li><a href="https://www.hashicorp.com/products/consul/?utm_source=oss&utm_medium=header-nav&utm_campaign=consul">Enterprise</a></li>
<li>
<a href="/downloads.html">
<%= inline_svg "download.svg" %> Download
</a>
</li>
<li>
2017-03-30 23:24:08 +00:00
<a href="https://github.com/hashicorp/consul">
<%= 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>
2017-07-28 23:56:57 +00:00
<li><a href="/docs/guides/index.html">Guides</a></li>
<li><a href="/docs/index.html">Docs</a></li>
2017-04-04 16:33:22 +00:00
<li><a href="/api/index.html">API</a></li>
<li><a href="/community.html">Community</a></li>
<li><a href="https://www.hashicorp.com/privacy">Privacy</a></li>
<li><a href="/security.html">Security</a></li>
<li><a href="http://demo.consul.io/">Demo</a></li>
2017-04-06 21:11:34 +00:00
<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>
<%= yield_content :scripts %>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Product",
"name": "Consul",
"alternateName": "Consul by HashiCorp",
"manufacturer": "HashiCorp",
"url": "https://www.consul.io",
2017-04-18 17:19:00 +00:00
"logo": "<%= File.join(base_url, image_path("logo-hashicorp.svg")) %>",
"sameAs": [
"https://github.com/hashicorp/consul"
]
}
</script>
</body>
</html>