jumbo-jekyll-theme 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/nav.html +21 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a5b2b362383de4626ba65e031548290fd5ff282e4f5094c53ebdf0d79848d24
4
- data.tar.gz: 5272be4a1faf9bbc5228f9e958de92085ca2391543d051e32d936f05793fffc4
3
+ metadata.gz: e31fa1e5c5ed76f45ba0108f28dfffa1e5b68ae38928ded397dd1f19494bed5d
4
+ data.tar.gz: a8377ce74f616e535719f7466e12b60fc255250e9f20c53bef733c17f7f3b4c7
5
5
  SHA512:
6
- metadata.gz: 0aaf2f4a98a69523c2d50c59c2ec565089cec40a63c8d78a18419e0ee966a4807f707bb67a3789f27dca9410eac19e5e8c7eccf74c59f86e90360b974be71d4a
7
- data.tar.gz: 658f579bb5638d10c27b3015cafeb49820bc1c2cbce7eb715f87aaf4a39eae256a65fef92b4def04583f203acb981b0f37bdd71cdb332bc66e20a0e233e58a03
6
+ metadata.gz: 82b0077262b388bff2dc3c2d89e5c7b63669ad0fc2746c0e9585a253ffff70dc3304d52cea5c631b7d699d6f151a45a5377f48065c99bcdd8a1193bd0eb2f640
7
+ data.tar.gz: 19c3176166bf442fcaa0203d82b6ca2e465d43912cd3a3ba0903f55224d29d88a1815db2381dc8ee5fa91f917f6866d86efc6366386b7b771575a54d8a6143e3
@@ -3,6 +3,9 @@
3
3
  {% endif %}
4
4
  {% assign page_base = page.url | split: "/" %}
5
5
  {% assign current_page_url = page.permalink | replace: "index.html", "" %}
6
+ {% if current_page_url == "/" %}
7
+ {% assign current_page_url = "do-no-set"%}
8
+ {% endif %}
6
9
  <nav class="
7
10
  {% if layout.nav-light %}
8
11
  nav-light
@@ -43,7 +46,24 @@ navbar-inverse navbar-static" id="main-navigation">
43
46
  {% for section in site.data.nav.pages %}
44
47
  {% if section.options %}
45
48
  <li class="main dropdown menu
46
- {% for menu-item in section.options %}{{menu-item.url}} vs {{current_page_url}} {% if menu-item.url contains current_page_url %}active{% endif %}{% endfor %} ">
49
+ {{current_page_url}}
50
+ {% for menu-item in section.options %}
51
+ {% if menu-item.options %}
52
+ {% for sub-item in menu-item.options %}
53
+ {% if sub-item.url contains current_page_url or sub-item.url == current_page_url %}
54
+ {% unless sub-item.url contains "http" %}
55
+ active
56
+ {% break %}
57
+ {% endunless %}
58
+ {% endif %}
59
+ {% endfor %}
60
+ {% elsif menu-item.url contains current_page_url or menu-item.url == current_page_url %}
61
+ {% unless menu-item.url contains "http" %}
62
+ active
63
+ {% break %}
64
+ {% endunless %}
65
+ {% endif %}
66
+ {% endfor %} ">
47
67
  <a {% if section.url %}href="{{section.url}}"{% endif %} class="main-anchor dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
48
68
  {{section.title}} <span class="caret"></span>
49
69
  </a>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby