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: 1458d8cf3d07c2851db4f9e8e5ea13901e5b2d08
4
- data.tar.gz: 3753356263451c6b95c2bdeca8bde278304b85d7
3
+ metadata.gz: 0e5d876f34e6590ddc8fccc53a134cab886c746c
4
+ data.tar.gz: 907bc9dec7933cf0e23699959505daf67759e9a1
5
5
  SHA512:
6
- metadata.gz: b01aed75a485485c392873a8fe14b592e5e5e3bb3b585f1c8e933c34af23e4d6782014e3d89eef7ebed89491ee1ad629b16aa54e63de18ab0cf0f68a662523ac
7
- data.tar.gz: 563140dfe9aa6a07b65c93ace077e47e10af607e8e38e034e28beee4809cc608cb051e9250892026dcfafe683478614252b3fb10fb3a372a4dcd85e734ad9924
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, {}, { template_body: File.read(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 Nomad fits into the</span> <img src="<%= image_path("mega-nav/logo-hashicorp.svg") %>" alt="HashiCorp Logo" /> <strong>HashiCorp Suite</strong></p>
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">
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module HashiCorp
3
- VERSION = "0.3.7"
3
+ VERSION = "0.3.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-hashicorp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo