swedbank-pay-design-guide-jekyll-theme 1.8 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/sidebar.html +1 -2
- data/lib/gem_version.rb +1 -1
- data/lib/sidebar.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a1983ca9e2e623d45572e71e44d145376ad1ea114526c130de81ddcbc58546d
|
4
|
+
data.tar.gz: c6403598ba456a0008c4e1d2545379faf4df3ad7c602c340efcf56b58d722d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d43cbc52a6b2015129e380a6dea2b4435eb6819be17af50094ce1cfe694d172759f7bc4b6371822854480c20b1a5559ed347970a1e77a7f616b6dfd1c6196f03
|
7
|
+
data.tar.gz: d8caa50f52475c619eefc3f96ae3e0985bf71dfde786e68f5b16031c5173cdb1fe5f8833a7bdb82bbee09b77b6bd535308bddf55f756acfaafb8f2507fae3a21
|
data/_includes/sidebar.html
CHANGED
@@ -19,7 +19,7 @@ Original creator: https://sebnitu.com/2016/10/13/dynamic-menus-in-jekyll/
|
|
19
19
|
{% endif %}
|
20
20
|
|
21
21
|
<ul class="main-nav-ul">
|
22
|
-
{% assign pages = site.pages | sort: '
|
22
|
+
{% assign pages = site.pages | sort: 'menu_order' %}
|
23
23
|
{% for node in pages %}
|
24
24
|
{% assign node_parts = node.url | split: '/' %}
|
25
25
|
{% assign node_depth = node_parts | size %}
|
@@ -113,4 +113,3 @@ Original creator: https://sebnitu.com/2016/10/13/dynamic-menus-in-jekyll/
|
|
113
113
|
</ul>
|
114
114
|
</nav>
|
115
115
|
</div>
|
116
|
-
|
data/lib/gem_version.rb
CHANGED
data/lib/sidebar.rb
CHANGED
@@ -5,6 +5,7 @@ require 'nokogiri'
|
|
5
5
|
require 'json'
|
6
6
|
|
7
7
|
module Jekyll
|
8
|
+
# A nice sidebar
|
8
9
|
class Sidebar
|
9
10
|
attr_accessor :hash_pre_render
|
10
11
|
attr_accessor :filename_with_headers
|
@@ -15,7 +16,7 @@ module Jekyll
|
|
15
16
|
end
|
16
17
|
|
17
18
|
def pre_render(page)
|
18
|
-
menu_order = page['
|
19
|
+
menu_order = page['menu_order'].nil? ? 0 : page['menu_order']
|
19
20
|
hide_from_sidebar = page['hide_from_sidebar'].nil? ? false : page['hide_from_sidebar']
|
20
21
|
url = page['url'].gsub('index.html', '').gsub('.html', '')
|
21
22
|
@hash_pre_render[url] = {
|
@@ -72,6 +73,7 @@ module Jekyll
|
|
72
73
|
|
73
74
|
def generateSubgroup(filename, key, value, all_subgroups, level)
|
74
75
|
title = value[:title].split('–').last
|
76
|
+
|
75
77
|
subsubgroup_list = all_subgroups.select do |subsubgroup_key, _subsubgroup_value|
|
76
78
|
subsubgroup_key.include? key and subsubgroup_key != key and \
|
77
79
|
key.split('/').length > level
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swedbank-pay-design-guide-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swedbank Pay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|