jekyll-theme-bas-style-kit 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/_includes/layout/site-navigation.html +12 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43005268ee83aaa5337b6e532257497dc626f6d3
|
4
|
+
data.tar.gz: ac58744ceca48c0205bf4829d5a05bb40c143220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5e731ccf2c76965384e261b14a2ff7163f4f3c0163c74dfbf10a44cd51fb6b36f8170d8cebbbb0e0db0808f18cc7720e7b1bfa40aae5a5ba7408d51930facc4
|
7
|
+
data.tar.gz: 34472b3459a6e0511ac07bb5f838b3be723ed47366c0541fc130ccb1dafce84c003c574ce9ee1c30b0f645205ad7889edf59844d6a98f537aa40c37bc716c284
|
data/CHANGELOG.md
CHANGED
@@ -5,8 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
5
5
|
|
6
6
|
## [Unreleased][unreleased]
|
7
7
|
|
8
|
+
## 0.1.1 - Skipped
|
9
|
+
|
8
10
|
## 0.1.0 - 12/03/2017
|
9
11
|
|
10
12
|
### Added
|
11
13
|
|
14
|
+
* Note that the Gem for this project is one minor version ahead of this version due to a technical error
|
12
15
|
* Initial project - based on BAS Style Kit version 0.1.0, and adapted from the BAS Style Kit documentation Jekyll site
|
@@ -17,9 +17,10 @@
|
|
17
17
|
{% for item in site.nav_items %}
|
18
18
|
{% comment %} Single navbar items {% endcomment %}
|
19
19
|
{% if item.type == 'single_item' %}
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
{% assign page_url = page.url | remove: '.html' %}
|
21
|
+
{% assign item_url = item.href | append: '/' %}
|
22
|
+
<li {% if page_url == item.href %}class="active"{% endif %} {% unless page_url == '/' %}{% unless item.href == '/' %}{% if page_url == item_url %} class="active"{% endif %}{% endunless %}{% endunless %}>
|
23
|
+
{% if page_url == item.href %}<span class="sr-only">(current)</span>{% endif %} {% unless page_url == '/' %}{% unless item.href == '/' %}{% if page_url + '/' == item.href %}<span class="sr-only">(current)</span>{% endif %}{% endunless %}{% endunless %}
|
23
24
|
<a href="{{ item.href }}">{{ item.name }}</a>
|
24
25
|
</li>
|
25
26
|
|
@@ -30,6 +31,10 @@
|
|
30
31
|
{% if page_url == action.href %}
|
31
32
|
{% assign is_active = true %}
|
32
33
|
{% endif %}
|
34
|
+
{% assign action_url = action.href | append: '/' %}
|
35
|
+
{% if page_url == action_url %}
|
36
|
+
{% assign is_active = true %}
|
37
|
+
{% endif %}
|
33
38
|
{% endfor %}
|
34
39
|
<li class="dropdown {% if is_active %}active{% endif %}">
|
35
40
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
@@ -37,9 +42,10 @@
|
|
37
42
|
{{ item.name }} <span class="caret"></span></a>
|
38
43
|
<ul class="dropdown-menu dropdown-menu-bsk">
|
39
44
|
{% for action in item.actions %}
|
40
|
-
|
41
|
-
|
42
|
-
|
45
|
+
{% assign action_url = action.href | append: '/' %}
|
46
|
+
<li {% if page_url == action.href %}class="active"{% endif %} {% unless page_url == '/' %}{% unless action.href == '/' %}{% if page_url == action_url %} class="active"{% endif %}{% endunless %}{% endunless %}>
|
47
|
+
{% if page_url == action.href %}class="active"{% endif %} {% unless page_url == '/' %}{% unless action.href == '/' %}{% if page_url == action_url %}<span class="sr-only">(current)</span>{% endif %}{% endunless %}{% endunless %}
|
48
|
+
<a href="{{ action.href }}">{{ action.name }}</a>
|
43
49
|
</li>
|
44
50
|
{% endfor %}
|
45
51
|
</ul>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-bas-style-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Fennell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|