jekyll-multiple-languages-plugin 1.2.6 → 1.2.7

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: bbcdc906fcb48165b18fa9a718fcd0eb884e9930
4
- data.tar.gz: 29e2b75850e04368daa5a44d122120a786b46d53
3
+ metadata.gz: 1cb958eea58bb3968a1dc9d7a5a0c950e14eac14
4
+ data.tar.gz: 819ab03100ef0ef5bc7c2df97673a0b8b5e12ed6
5
5
  SHA512:
6
- metadata.gz: 8ce1a9bd7dbae43dfed4787f63e8a42f652e6c6d0542fe1998106b8e39b0410c5b82c3dc45a0c572c8e1e72126e40b24d4f5cac1922603f60c13dc4224b62b6c
7
- data.tar.gz: 5c03f7adfe4c8febe35828627baeabba049ce1873cf82e20a0eac646c12fad6e85ea65132882d3f903d487f534dc452a38536ac6aff344a98265042474ae448b
6
+ metadata.gz: 477536b9ebcb976921943ea57afc8a14e3c058d9409cac311fd79de0134f728a8b594195ece368650d5683236e70440b5ed9a7f88c95187ea1f971f6ee7cd1d4
7
+ data.tar.gz: d35d5501362d2441e1fcd3a84d43c3cc92024ae69e35ca28d26c188c00ac23d114b739237c0e2cc1a8dadc0ec22a8692025036243ac28bb86181ef1fd6a85c5f
data/README.md CHANGED
@@ -60,6 +60,8 @@ Copy or link the file `lib/jekyll/multiple/languages/plugin.rb` into your `_plug
60
60
  * Supports translated template files
61
61
 
62
62
  ##Changelog
63
+ * 1.2.7
64
+ * Support for Jekyll 2.5+, thanks to [@caxy4](https://github.com/caxy4)
63
65
  * 1.2.6
64
66
  * Added fallback to default language, thanks to [@agramian](https://github.com/agramian)
65
67
  * 1.2.5
@@ -199,7 +201,7 @@ This allows you to create solutions like this:
199
201
 
200
202
  ``` liquid
201
203
  {% if site.lang == "sv" %}
202
- {% capture link1 %}{{ site.baseurl_root }}/en{{ page.url}}{% endcapture %}
204
+ {% capture link1 %}{{ site.baseurl_root }}en{{ page.url}}{% endcapture %}
203
205
  <a href="{{ link1 }}" >{% t global.english %}</a>
204
206
  {% else if site.lang == "en" %}
205
207
  {% capture link2 %}{{ site.baseurl_root }}{{ page.url }}{% endcapture %}
@@ -28,14 +28,14 @@ module Jekyll
28
28
  languages.drop(1).each do |lang|
29
29
 
30
30
  # Build site for language lang
31
- self.dest = self.dest + "/" + lang
31
+ @dest = @dest + "/" + lang
32
32
  self.config['baseurl'] = self.config['baseurl'] + "/" + lang
33
33
  self.config['lang'] = lang
34
34
  puts "Building site for language: \"#{self.config['lang']}\" to: #{self.dest}"
35
35
  process_org
36
36
 
37
37
  #Reset variables for next language
38
- self.dest = dest_org
38
+ @dest = dest_org
39
39
  self.config['baseurl'] = baseurl_org
40
40
  end
41
41
  Jekyll.setlangs({})
@@ -2,7 +2,7 @@ module Jekyll
2
2
  module Multiple
3
3
  module Languages
4
4
  module Plugin
5
- VERSION = "1.2.6"
5
+ VERSION = "1.2.7"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-multiple-languages-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Kurtsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2014-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler