octopress-multilingual 1.1.2 → 1.1.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: 5bd5e6f51c804733c55246e3b4b1be02892600e0
4
- data.tar.gz: db7d5e207295198819c8423849970173afde3cf7
3
+ metadata.gz: f63e94caebb32bb02400c36549a41dcdac7b6233
4
+ data.tar.gz: d8d6a66d61b17e308e368beaeda4755192efdcb8
5
5
  SHA512:
6
- metadata.gz: 40e189148351826d42e4ae0fa4ea6cbd1f100cf22f1a33928590fbd29398d71ca52c40be1c6f482ee9fb59565c48c7ee5a35f5a4ad2fabe39e76e9ea00b74a7f
7
- data.tar.gz: e041121a1cdf86dd36532750da14ecdb34ff54cef95c51b2cdf524c50d26d6cb1220b5b8d35c4ec16772b8685a035de3075320c0a590d33a3303a9c6bdfde6ec
6
+ metadata.gz: 763b84afc697d3223900e426c8141bf6e5075e833b24860a47f079489b0d3136ee6ce3346973948027dddd1b91417b020840762e873db1f3432a239f84ad3681
7
+ data.tar.gz: 5a4a430a9d3058bc3728c6c6a99635ccbee09e413f5b6248ef5d0a1437fd63c7b1a7da7e550172f6b572674fa7929eb02ea2d84820b8463b4b971d479e479edd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.1.3 (2015-03-02)
4
+ - Fix: Posts permalinks will only have language defined if the site has a default language.
5
+
3
6
  ### 1.1.2 (2015-02-26)
4
7
  - Fix: Pages with `:lang` in permalink structure are given proper URLs if language is not defined for them.
5
8
 
@@ -80,8 +80,10 @@ module Jekyll
80
80
  def template
81
81
  template = template_orig
82
82
 
83
- if [:pretty, :none, :date, :ordinal].include? site.permalink_style
84
- template = File.join('/:lang', template)
83
+ if self.site.config['lang']
84
+ if [:pretty, :none, :date, :ordinal].include? site.permalink_style
85
+ template = File.join('/:lang', template)
86
+ end
85
87
  end
86
88
 
87
89
  template
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Multilingual
3
- VERSION = "1.1.2"
3
+ VERSION = "1.1.3"
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.2
4
+ version: 1.1.3
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-26 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-hooks