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.
- checksums.yaml +4 -4
- data/_includes/nav.html +3 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba1d23ba31fa607f391a98126ef879470f4eba5f46a9e245c114c41f9097df36
|
4
|
+
data.tar.gz: 9974a847f53192a4f31d44dea1495fd17edbe611358efb6a6c425c0e5887a09b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a06056064161827959461e2b5ae80fddc0dcd69ff6fb586b6da1237928efd7f40fd1d175df83fbda9078bb500c386a9540bcac2651f0ed9441208cac931addb
|
7
|
+
data.tar.gz: efafaf5ddf98b13d1782e71738af821d39f2c2fe911d7a4f9dae7a6173c73efff064dfea2b6bc7f83e3d5f6a75575d8fa69b09515d593b7256b250f515fd83dc
|
data/_includes/nav.html
CHANGED
@@ -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
|
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 %}
|