jumbo-jekyll-theme 3.5.4 → 3.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/_data/nav.yml +4 -0
  3. data/_includes/nav.html +16 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b087c9faaca87e602b56b25eb59b2ae2e7d5ed00bf18b1d1af3fe4e9a02fb0e
4
- data.tar.gz: 4914a1cf7328da4e7ece9faa87d97536dcedb3e08d8b381fcd1b089ad4ff2c23
3
+ metadata.gz: 488adabcb380a3df689d4c7c34b10ee1c5265a5344a548cc8231a53afad59e07
4
+ data.tar.gz: '08ff99f155d152532491203871658599f8605e70c5db28fa0b94715370b76ef2'
5
5
  SHA512:
6
- metadata.gz: b1fee06ee17796c4e42979f74942bec84fe4fdbfb4a4315c61e8f89b67f9af272b11cba6148073e86d8806f3f331dd4651021927ec0534113ea31d0d998ab095
7
- data.tar.gz: 40c5ab688a29d7e0241c75691c0f54f3c5377adf48aab5b8783934864634a701f6078a5f2a1030591700e80297ff7d36125a87105abafc56d6d4d9c4d4cb21f4
6
+ metadata.gz: 8e67f2b7db954d8f662384e5a9b5f132f9d47cede283f1b4db0eedcecaea96723c6158d0ce10e882b3ada7556d7e66d723fdceb043f0cf80f87ad5199c1d3ecb
7
+ data.tar.gz: 8f575740417b61b69512db2b181b1182a90d3ea4b94a7d1eb3d69ee50379d97588ec7581ea31983d6b435153c40736a8dfe1627798aa0baeff0f089ac76d9a37
data/_data/nav.yml CHANGED
@@ -14,6 +14,8 @@ brand:
14
14
  pages:
15
15
 
16
16
  - title: Jekyll
17
+ active_paths:
18
+ - /new/
17
19
  options:
18
20
  - text: Plugins
19
21
  options:
@@ -71,5 +73,7 @@ pages:
71
73
 
72
74
  - title: Blog
73
75
  url: /blog/
76
+ active_paths:
77
+ - /new/
74
78
  - title: Download
75
79
  url: /download/
data/_includes/nav.html CHANGED
@@ -39,13 +39,20 @@ navbar-inverse navbar-static" id="main-navigation">
39
39
  </a>
40
40
  {% endif %}
41
41
  </div>
42
-
43
42
  <!-- NAVBAR COLLAPSE-->
44
43
  <div class="collapse navbar-collapse" id="navbar-collapse">
45
44
  <ul class="nav navbar-nav navbar-right" id="navbar-buttons">
46
45
  {% for section in site.data.nav.pages %}
47
46
  {% if section.options %}
48
47
  <li class="main dropdown menu
48
+ {% if section.active_paths %}
49
+ {% for active_path in section.active_paths %}
50
+ {% if current_page_url contains active_path %}
51
+ active
52
+ {% break %}
53
+ {% endif %}
54
+ {% endfor %}
55
+ {% endif %}
49
56
  {% for menu-item in section.options %}
50
57
  {% if menu-item.options %}
51
58
  {% for sub-item in menu-item.options %}
@@ -97,7 +104,14 @@ navbar-inverse navbar-static" id="main-navigation">
97
104
  </ul>
98
105
  </li>
99
106
  {% else %}
100
- <li class="main {% if section.url == current_page_url or current_page_url contains section.url %}active{% endif %}">
107
+ <li class="main {% if section.url == current_page_url or current_page_url contains section.url %}active{% elsif section.active_paths %}
108
+ {% for active_path in section.active_paths %}
109
+ {% if current_page_url contains active_path %}
110
+ active
111
+ {% break %}
112
+ {% endif %}
113
+ {% endfor %}
114
+ {% endif %}">
101
115
  <a class="main-anchor" href="{{section.url}}" title="{{section.title}}">{{section.title}}</a>
102
116
  </li>
103
117
  {% endif %}
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.4
4
+ version: 3.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby