octopress-multilingual 0.2.2 → 0.2.3

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: ae2a7d77082269627ef469a575b895949ae49989
4
- data.tar.gz: 472a8cfecf409781c79272d665abc7df984c6236
3
+ metadata.gz: 46557f90d2d061e6f23d42976d53a040f09f8f45
4
+ data.tar.gz: daabecf689490d31f77ee6983e0b1169df486b2b
5
5
  SHA512:
6
- metadata.gz: 43a2416772b2c9af04bdc6913e3b8cd36232a39eb2c60fd0ce00ce01cf6671faf6a3c01caeac2410575e87babe11768020614bc31f55d239e4fb1858198383c5
7
- data.tar.gz: 4cbbda31c6c4e7f00d1205fcb71f5bae2979901b59c4a7cda16e1e667de77d619eea38c4369218361255ce66c6e0f10173f9f1dbfc0fbd752f277097f21ab118
6
+ metadata.gz: f6aaa3a0ff312a958f1fac98ed54e1504ffae38bc3acb691d45011557d39a8c434580326f82d269674015345f841b5dee4f123cee91e0417707a4a7202891f0b
7
+ data.tar.gz: aab67497b57a2d25d19b6028bab7ad0b04ead84169ee31ba33e3a844bc2bdd57e77e3cc0802f6a173b770083f56a576e41d7e752c6f174b898fcf21e184d7b5f
data/CHANGELOG.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ### 0.2.0 (2015-02-02)
3
+ ### 0.2.3 (2015-02-03)
4
+ - Fixed an issue where permalinks would break if post/page language was not defined.
5
+
6
+ ### 0.2.2 (2015-02-02)
4
7
  - No longer necessary to abort if site language is not defined.
5
8
 
6
- ### 0.2.0 (2015-02-02)
9
+ ### 0.2.1 (2015-02-02)
7
10
  - Added a `language_name` method for retrieving a match from the language_names hash.
8
11
 
9
12
  ### 0.2.0 (2015-02-02)
@@ -59,9 +59,11 @@ module Jekyll
59
59
  end
60
60
 
61
61
  def permalink
62
- if permalink = permalink_orig
62
+ if permalink = permalink_orig && lang
63
63
  data['permalink'].sub!(/:lang/, lang)
64
64
  permalink.sub(/:lang/, lang)
65
+ else
66
+ permalink_orig
65
67
  end
66
68
  end
67
69
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Multilingual
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-multilingual
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis