packer-cn/website/source/layouts/layout.erb

126 lines
5.7 KiB
Plaintext
Raw Normal View History

2013-06-08 01:41:02 -04:00
<!DOCTYPE html>
<html>
<head>
<title>
<%= [current_page.data.page_title, "Packer by HashiCorp"].compact.join(" - ") %>
</title>
<meta name="description" content="<%= current_page.data.description %>" />
<%= stylesheet_link_tag "application" %>
2015-03-19 10:43:25 -04:00
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="shortcut icon" href="<%= image_path(" favicon.ico ") %>" type="image/x-icon">
<link rel="icon" href="<%= image_path(" favicon.ico ") %>" type="image/x-icon">
2017-02-27 19:54:39 -05:00
2017-01-27 15:40:42 -05:00
<!-- 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 Google Tag Manager -->
2017-02-27 19:54:39 -05:00
<!-- Typekit script to import Klavika -->
<script src="https://use.typekit.net/wxf7mfi.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
</head>
2015-11-10 05:02:08 -05:00
<body id="page-<%= current_page.data.page_title ? "#{current_page.data.page_title}" : "home" %>" class="page-<%= current_page.data.page_title ? "#{current_page.data.page_title} layout-#{current_page.data.layout} page-sub" : "home layout-#{current_page.data.layout}" %>">
2017-01-27 15:40:42 -05:00
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NR2SD7C"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="header" class="navigation white <%= current_page.data.page_title == "home" ? "" : "navbar-static-top" %>">
2017-03-03 14:17:16 -05:00
<%= mega_nav :terraform %>
<div class="container-fluid">
<div class="navbar-header">
<div class="navbar-brand">
2015-11-10 13:55:52 -05:00
<a class="logo" href="/">Packer</a>
2016-01-14 15:38:54 -05:00
<a class="by-hashicorp white" href="https://www.hashicorp.com/"><span class="svg-wrap">by</span><%= partial "layouts/svg/svg-by-hashicorp" %><%= partial "layouts/svg/svg-hashicorp-logo" %>Hashicorp</a>
</div>
<button class="navbar-toggle white" 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">
<li><a href="/intro">Intro</a></li>
<li><a href="/docs">Docs</a></li>
<li><a href="/community">Community</a></li>
</ul>
<ul class="external-links nav navbar-nav">
<li class="first download">
<a href="/downloads.html"><%= partial "layouts/svg/svg-download" %>Download</a>
</li>
<li class="github">
<a href="https://github.com/mitchellh/packer"><%= partial "layouts/svg/svg-github" %>GitHub</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
2015-11-10 16:31:42 -05:00
<%= partial "layouts/sidebar" %>
<%= yield %>
<div class="clearfix"></div>
2015-11-12 19:47:51 -05:00
<footer id="footer" class="navigation white">
2017-03-01 01:25:06 -05:00
<div class="container-fluid">
<div class="row">
2015-11-10 15:19:17 -05:00
<div class="col-xs-12">
<% # current_page.path does not have an extension, but
# current_page.source_file does. Also, we don't want to show
# this on the homepage.
if current_page.url != "/"
current_page_source = current_page.path + \
current_page.source_file.split(current_page.path)[1] %>
<% if current_page.url != '/' %>
<div class="edit-page-link"><a href="https://github.com/mitchellh/packer/blob/master/website/source/<%= current_page_source %>">Edit this page</a></div>
2015-07-22 22:29:59 -04:00
<% end %>
2015-11-10 15:19:17 -05:00
<% end %>
2015-11-10 16:15:50 -05:00
<div class="footer-links clearfix">
2015-11-10 15:19:17 -05:00
<ul class="main-links white nav navbar-nav">
2015-11-10 16:31:42 -05:00
<li><a href="/intro">Intro</a></li>
<li><a href="/docs">Docs</a></li>
<li><a href="/community">Community</a></li>
2016-10-29 14:16:06 -04:00
<li><a href="/security.html">Security</a></li>
2015-11-10 15:19:17 -05:00
</ul>
<ul class="external-links white nav navbar-nav">
<li class="first download">
<a href="/downloads.html"><%= partial "layouts/svg/svg-download" %>Download</a>
</li>
<li class="github">
2015-11-10 16:15:50 -05:00
<a href="https://github.com/mitchellh/packer"><%= partial "layouts/svg/svg-github" %>GitHub</a>
2015-11-10 15:19:17 -05:00
</li>
</ul>
</ div>
<div class="footer-hashi pull-right">
<div class="">
<a class="hashicorp-project white" href="https://www.hashicorp.com">
<span class="project-text">A </span>
<%= partial "layouts/svg/svg-by-hashicorp" %>
<span class="project-text">Project</span>
<%= partial "layouts/svg/svg-hashicorp-logo" %>
</a>
</div>
</div>
</div>
</div>
</div>
2015-07-22 22:29:59 -04:00
</div>
</footer>
2015-11-10 16:31:42 -05:00
<%= javascript_include_tag "application" %>
2015-07-22 22:29:59 -04:00
<%= partial "layouts/google-analytics.html" %>
2015-07-28 18:04:19 -04:00
<%= partial "layouts/adroll.html" %>
2016-01-24 13:11:58 -05:00
<%= partial "layouts/structured_data.html" %>
2015-07-22 22:29:59 -04:00
</body>
2013-06-08 01:41:02 -04:00
</html>