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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a56cc128c5a45c3cc09c6aa8302f3637e7ebad32
4
- data.tar.gz: 235c350940d5acc5a81ce529535004a754e1b148
3
+ metadata.gz: 43005268ee83aaa5337b6e532257497dc626f6d3
4
+ data.tar.gz: ac58744ceca48c0205bf4829d5a05bb40c143220
5
5
  SHA512:
6
- metadata.gz: 6c9df02310e8cd1646246a0a865ba28127883bffa7abde5a0523bbc45488279033255ccbfb3ce91fa29e83aedd9fc9354972fbbb0d1c9a3c0e814a97661674a5
7
- data.tar.gz: 4379eacbf303c3ac5057fd239c4b0bf9df2b586b3910ccbc8fe26ed90a2ac12200f710a3b89bfb7b8c30a78bb1af53046710361425b8884c5c2593993b0761e5
6
+ metadata.gz: b5e731ccf2c76965384e261b14a2ff7163f4f3c0163c74dfbf10a44cd51fb6b36f8170d8cebbbb0e0db0808f18cc7720e7b1bfa40aae5a5ba7408d51930facc4
7
+ data.tar.gz: 34472b3459a6e0511ac07bb5f838b3be723ed47366c0541fc130ccb1dafce84c003c574ce9ee1c30b0f645205ad7889edf59844d6a98f537aa40c37bc716c284
@@ -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
- {% assign page_url = page.url | remove: '.html' %}
21
- <li {% if page_url == item.href %} class="active"{% endif %}>
22
- {% if page_url == item.url %}<span class="sr-only">(current)</span>{% endif %}
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
- <li {% if page_url == action.href %} class="active"{% endif %}>
41
- {% if page_url == action.href %}<span class="sr-only">(current)</span>{% endif %}
42
- <a href="{{ action.href }}">{{ action.name }}</a>
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.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-12 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll