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.
- checksums.yaml +4 -4
- data/_includes/nav.html +21 -1
- 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: e31fa1e5c5ed76f45ba0108f28dfffa1e5b68ae38928ded397dd1f19494bed5d
|
4
|
+
data.tar.gz: a8377ce74f616e535719f7466e12b60fc255250e9f20c53bef733c17f7f3b4c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82b0077262b388bff2dc3c2d89e5c7b63669ad0fc2746c0e9585a253ffff70dc3304d52cea5c631b7d699d6f151a45a5377f48065c99bcdd8a1193bd0eb2f640
|
7
|
+
data.tar.gz: 19c3176166bf442fcaa0203d82b6ca2e465d43912cd3a3ba0903f55224d29d88a1815db2381dc8ee5fa91f917f6866d86efc6366386b7b771575a54d8a6143e3
|
data/_includes/nav.html
CHANGED
@@ -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
|
-
{
|
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>
|