jekyll-menus 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/menus.rb +3 -1
- data/lib/jekyll/menus/version.rb +1 -1
- 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: 112ca0fd0d0030fd3bcb7b6d7f945fe52f36a8cf
|
4
|
+
data.tar.gz: 4ec95edef9cacf10e9671babc3e5007ea28fba9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dd4067ac10a03c54a8be8966d9b8ca4592ac0544b05c6627f239ae08bab9b582d377733471e0acfb88c52aa2bd41664e1c357f605013734efa4a09b587699e8
|
7
|
+
data.tar.gz: 55ce626ee70a53eb6b4e28c6f208894c9c1ce4d9dfbb39b41c74bda11660fa9373bb3def5bb4d1562c4668ac59843990989a9daf997dee20b65565307347bc34
|
data/lib/jekyll/menus.rb
CHANGED
@@ -167,10 +167,12 @@ module Jekyll
|
|
167
167
|
|
168
168
|
private
|
169
169
|
def _validate_config_menu_item(item)
|
170
|
-
|
170
|
+
if !item.is_a?(Hash) || !item.values_at("url", "title", "identifier").compact.size == 3
|
171
171
|
_throw_invalid_menu_entry(
|
172
172
|
item
|
173
173
|
)
|
174
|
+
else
|
175
|
+
item["weight"] ||= -1
|
174
176
|
end
|
175
177
|
end
|
176
178
|
|
data/lib/jekyll/menus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-menus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|