jumbo-jekyll-theme 3.3.9 → 3.4.0

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 +3 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f9d02cab84c65a7989dd4ba3ea6ec14ec9f282c536c34e8748a6d64f771a2a8
4
- data.tar.gz: 2427cda43211ce56e948d958a988137565d2fdb84b1a0599bf539e1fd03638a5
3
+ metadata.gz: ba1d23ba31fa607f391a98126ef879470f4eba5f46a9e245c114c41f9097df36
4
+ data.tar.gz: 9974a847f53192a4f31d44dea1495fd17edbe611358efb6a6c425c0e5887a09b
5
5
  SHA512:
6
- metadata.gz: 704f165325ddad4c26a594c4e5e8fbddffdd7d799fc65b67583b35c17c55263a753030f2f4a52e42a82317a97d348943bfdc8b3341b01e1bd6ab51f38dd00157
7
- data.tar.gz: ddbfb05d6d0388191fba9eca214b1bbe5d9d376b9756abbdbc1e7df585961798cc247447cb05fef78bb81e7490ef64f5c50ce3a16d5a4aa61e1eaad8db3600de
6
+ metadata.gz: 0a06056064161827959461e2b5ae80fddc0dcd69ff6fb586b6da1237928efd7f40fd1d175df83fbda9078bb500c386a9540bcac2651f0ed9441208cac931addb
7
+ data.tar.gz: efafaf5ddf98b13d1782e71738af821d39f2c2fe911d7a4f9dae7a6173c73efff064dfea2b6bc7f83e3d5f6a75575d8fa69b09515d593b7256b250f515fd83dc
@@ -2,6 +2,7 @@
2
2
  {% include universal-nav.html %}
3
3
  {% endif %}
4
4
  {% assign page_base = page.url | split: "/" %}
5
+ {% assign current_page_url = page.permalink | replace: "index.html", "" %}
5
6
  <nav class="
6
7
  {% if layout.nav-light %}
7
8
  nav-light
@@ -42,11 +43,7 @@ navbar-inverse navbar-static" id="main-navigation">
42
43
  {% for section in site.data.nav.pages %}
43
44
  {% if section.options %}
44
45
  <li class="main dropdown menu
45
- {% for menu-item in section.options %}
46
- {% if menu-item.url contains page_base[1] %}
47
- active
48
- {% endif %}
49
- {% endfor %} ">
46
+ {% for menu-item in section.options %}{% if menu-item.url contains page_base[1] %}active{% endif %}{% endfor %} ">
50
47
  <a {% if section.url %}href="{{section.url}}"{% endif %} class="main-anchor dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
51
48
  {{section.title}} <span class="caret"></span>
52
49
  </a>
@@ -81,7 +78,7 @@ navbar-inverse navbar-static" id="main-navigation">
81
78
  </ul>
82
79
  </li>
83
80
  {% else %}
84
- <li class="main {% if section.url contains page_base[1] %}active{% endif %}">
81
+ <li class="main {% if section.url == current_page_url %}active{% endif %}">
85
82
  <a class="main-anchor" href="{{section.url}}" title="{{section.title}}">{{section.title}}</a>
86
83
  </li>
87
84
  {% 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.3.9
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby