octopress-multilingual 0.1.2 → 0.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: 302fae77a236cb4710f11f33a190439faeadffea
4
- data.tar.gz: be11a982c1bbf2978e2fb96a951400b19e118819
3
+ metadata.gz: 3417d3f633e1f848fa11d4c11bd5f6d034d7ada0
4
+ data.tar.gz: 0e3a0f92834a9e1b416dd732912c3759a592ce87
5
5
  SHA512:
6
- metadata.gz: 17da4fccb7e37da3d0e0176d9c7f9a8d67768330253f116ca6e24ee2e11c40d5c994005cac6aa0dc6c9651b057556e2ea7d983c78885c3cd696f35b1b796b8cf
7
- data.tar.gz: b105ea8c82961ee6030b7bff45334e0350ab79c5a474ae0b4963c8b4a327e0872c2023f814d0be9e8c7b629beb90f76ee62030d74a1b5314a45af741588c5793
6
+ metadata.gz: 7c7f1293cb33d3e9fb1b4cc9f9cf6e7614fc9c2d7d3941375b77e529703d7370f50511bd8ad697e8e31f9ae471b73bcc09fefecba0112d9b9bd3be4af5de3f63
7
+ data.tar.gz: f93757aee7c7053017d60979024ea141f9d69ec9ed058206857015d80e5534e958ae08649d1845c5a59de5ca0e1d71fe67863445e65888185279895625639034
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.1.2 (2015-01-31)
4
+ - Fix: 'default' language maps to site.lang.
5
+ - Fix: Issue with access to site instance.
6
+
3
7
  ### 0.1.2 (2015-01-31)
4
8
  - Now pages can use the /:lang/ permalink placeholder.
5
9
  - New site methods: `posts_by_language`, `articles_by_language`, `linkposts_by_language`, `languages`.
@@ -20,6 +20,10 @@ module Octopress
20
20
  end
21
21
  end
22
22
 
23
+ def site
24
+ @site ||= Octopress.site
25
+ end
26
+
23
27
  def languages
24
28
  posts_by_language.keys
25
29
  end
@@ -42,7 +42,8 @@ module Jekyll
42
42
  alias :permalink_orig :permalink
43
43
 
44
44
  def lang
45
- if data['lang']
45
+ if lang = data['lang']
46
+ data['lang'] = site.config['lang'] if lang == 'default'
46
47
  data['lang'].downcase
47
48
  end
48
49
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Multilingual
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis