middleman-hashicorp 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e5d876f34e6590ddc8fccc53a134cab886c746c
|
4
|
+
data.tar.gz: 907bc9dec7933cf0e23699959505daf67759e9a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f58efc7fcf60726cf97d29e9454f7b718eec089b049ed43d74974a8f67fcc7054e3d96f204bbd3e2b2a3a3ad18ff570a13908bdc90734889e7485778941c70c8
|
7
|
+
data.tar.gz: 15c45db6876ee42debe9036065698840d91ea42092a00438f06d205b299f0c3443f433ab3825e0ee84e35b9d3cb388e6a65e288dd9cb81cf7055ff1a6f1f8df4
|
data/README.md
CHANGED
@@ -71,7 +71,7 @@ Customizations
|
|
71
71
|
HashiCorp has a consistent mega-nav used across all project sites. This is insertable into any document using the following:
|
72
72
|
|
73
73
|
```erb
|
74
|
-
<%= mega_nav %>
|
74
|
+
<%= mega_nav :terraform %>
|
75
75
|
```
|
76
76
|
|
77
77
|
Additionally, you must import the CSS and Javascript:
|
@@ -199,9 +199,11 @@ class Middleman::HashiCorpExtension < ::Middleman::Extension
|
|
199
199
|
# Inserts the mega navigation to be used across all project sites.
|
200
200
|
# @return [String]
|
201
201
|
#
|
202
|
-
def mega_nav
|
202
|
+
def mega_nav(product, variables = {})
|
203
|
+
variables = variables.dup
|
204
|
+
variables[:product] = product.to_s
|
203
205
|
f = File.expand_path("../partials/_mega.html.erb", __FILE__)
|
204
|
-
render_individual_file(f,
|
206
|
+
render_individual_file(f, variables, { template_body: File.read(f) })
|
205
207
|
end
|
206
208
|
end
|
207
209
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
by <img src="<%= image_path("mega-nav/logo-hashicorp-wordmark.svg") %>" alt="HashiCorp Logo" />
|
15
15
|
</div>
|
16
16
|
<div class="mega-nav-banner-item">
|
17
|
-
<p class="mega-nav-tagline"><span class="visible-xs text-muted">Learn the</span><span class="hidden-xs text-muted">Learn how
|
17
|
+
<p class="mega-nav-tagline"><span class="visible-xs text-muted">Learn the</span><span class="hidden-xs text-muted">Learn how <%= product.titleize %> fits into the</span> <img src="<%= image_path("mega-nav/logo-hashicorp.svg") %>" alt="HashiCorp Logo" /> <strong>HashiCorp Suite</strong></p>
|
18
18
|
<div id="#mega-nav" class="mega-nav">
|
19
19
|
<button type="button" id="mega-nav-ctrl" class="mega-nav-ctrl"><svg class="mega-nav-icon mega-nav-icon-angle-right" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mega-nav-icon-angle"></use></svg><span class="visuallyhidden">Open</span></button>
|
20
20
|
<div id="mega-nav-body-ct" class="mega-nav-body-ct" aria-labelledby="mega-nav-ctrl">
|