octopress-multilingual 1.1.1 → 1.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: 1e686430fdd82cfe9d2a087a3e2ca8ddb46cbf00
4
- data.tar.gz: 310ab73b3121f5bb638208cd62ef8245ec0b9d6f
3
+ metadata.gz: 5bd5e6f51c804733c55246e3b4b1be02892600e0
4
+ data.tar.gz: db7d5e207295198819c8423849970173afde3cf7
5
5
  SHA512:
6
- metadata.gz: 1f40e26fe6d5f38ba627486aeaf644d5adb2e106b0dc33457eb07ab089b9e5d594f5c1e521ab9b2b189774ac963e1fb970afca6090d918d7b188fea05169d476
7
- data.tar.gz: 000fe172c2185a760a440acdc2166c4970374c6edb6a3455b83823cadc88058d3feb78d5f797e03184116e1afab9d8f8a5edf5d9232077046b9cef16fce4503b
6
+ metadata.gz: 40e189148351826d42e4ae0fa4ea6cbd1f100cf22f1a33928590fbd29398d71ca52c40be1c6f482ee9fb59565c48c7ee5a35f5a4ad2fabe39e76e9ea00b74a7f
7
+ data.tar.gz: e041121a1cdf86dd36532750da14ecdb34ff54cef95c51b2cdf524c50d26d6cb1220b5b8d35c4ec16772b8685a035de3075320c0a590d33a3303a9c6bdfde6ec
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.1.2 (2015-02-26)
4
+ - Fix: Pages with `:lang` in permalink structure are given proper URLs if language is not defined for them.
5
+
3
6
  ### 1.1.1 (2015-02-18)
4
7
  - Minor: Now site languages array always lists primary language first.
5
8
 
@@ -59,12 +59,17 @@ module Jekyll
59
59
  end
60
60
 
61
61
  def permalink
62
- if lang && permalink = permalink_orig
63
- data['permalink'].sub!(/:lang/, lang)
64
- permalink.sub(/:lang/, lang)
65
- else
66
- permalink_orig
62
+ if permalink = permalink_orig
63
+ if lang
64
+ data['permalink'].sub!(':lang', lang)
65
+ permalink.sub!(':lang', lang)
66
+ else
67
+ data['permalink'].sub!('/:lang', '')
68
+ permalink.sub!('/:lang', '')
69
+ end
67
70
  end
71
+
72
+ permalink
68
73
  end
69
74
  end
70
75
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Multilingual
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-multilingual
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-hooks