jekyll-menus 0.4.0 → 0.5.0

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: 3c7f13786ee80387b5d235258f9efed7da922503
4
- data.tar.gz: 1109f99103483a529ac28221a2dcd7e709b986ad
3
+ metadata.gz: 4a2a2fdf7722a9b668123b62067a9e89d372c4fa
4
+ data.tar.gz: 2f38c1e8e8ff55808effb42452e5a9fc4b8c9f65
5
5
  SHA512:
6
- metadata.gz: a56855d97a1747b18f66de21008448baec7c17fd06b65960d3d1b859b259de5b7210700ac96e7b84635d3cabf9e26c01918c40eb88ef3b88c28e783a3f7c5943
7
- data.tar.gz: b68be156ab98dbb4b5af675d760f2ca0f3b2db14b9033929aa37989685138fdb17437a6057bb863f8f14da34618c6cb97e3725df5ae446d254a5e81304a599c6
6
+ metadata.gz: a3a7ebde802770a6a5afa5575b8cb4c3dffb9dff0e52c294196dc3e77f10f20ba5f21486b2d0ae5320a019b949175e03a04ab33c930b9b473ed23c9a4f73a9a6
7
+ data.tar.gz: 68f67d068a486896aefdf14ea3cba2a7874e4da9110158308c91fe80ff586c22db40dcef45809e873023b1106ba4792c61e6000587ae81e7dd1a27d9c84666a5
@@ -205,8 +205,8 @@ module Jekyll
205
205
  def slug(page)
206
206
  ext = page.data["ext"] || page.ext
207
207
  out = File.join(File.dirname(page.path), File.basename(page.path, ext))
208
- out.tr("^a-z0-9-_\\/", "").gsub(
209
- /\/|\-+/, "_"
208
+ out.tr("^a-z0-9-_\\/", "").gsub(/\/|\-+/, "_").gsub(
209
+ /^_+/, ""
210
210
  )
211
211
  end
212
212
 
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Jekyll
6
6
  class Menus
7
- VERSION = "0.4.0"
7
+ VERSION = "0.5.0"
8
8
  end
9
9
  end
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.0
4
+ version: 0.5.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-02-13 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll