jekyll-menus 0.3.0 → 0.4.0
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 +2 -1
- data/lib/jekyll/menus/drops/item.rb +2 -5
- 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: 3c7f13786ee80387b5d235258f9efed7da922503
|
4
|
+
data.tar.gz: 1109f99103483a529ac28221a2dcd7e709b986ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a56855d97a1747b18f66de21008448baec7c17fd06b65960d3d1b859b259de5b7210700ac96e7b84635d3cabf9e26c01918c40eb88ef3b88c28e783a3f7c5943
|
7
|
+
data.tar.gz: b68be156ab98dbb4b5af675d760f2ca0f3b2db14b9033929aa37989685138fdb17437a6057bb863f8f14da34618c6cb97e3725df5ae446d254a5e81304a599c6
|
data/lib/jekyll/menus.rb
CHANGED
@@ -203,7 +203,8 @@ module Jekyll
|
|
203
203
|
|
204
204
|
private
|
205
205
|
def slug(page)
|
206
|
-
|
206
|
+
ext = page.data["ext"] || page.ext
|
207
|
+
out = File.join(File.dirname(page.path), File.basename(page.path, ext))
|
207
208
|
out.tr("^a-z0-9-_\\/", "").gsub(
|
208
209
|
/\/|\-+/, "_"
|
209
210
|
)
|
@@ -56,14 +56,11 @@ module Jekyll
|
|
56
56
|
|
57
57
|
#
|
58
58
|
|
59
|
-
def
|
60
|
-
if
|
59
|
+
def before_method(method)
|
60
|
+
if @item.has_key?(method.to_s)
|
61
61
|
return @item[
|
62
62
|
method.to_s
|
63
63
|
]
|
64
|
-
|
65
|
-
else
|
66
|
-
super
|
67
64
|
end
|
68
65
|
end
|
69
66
|
end
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|