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 +4 -4
- data/README.md +3 -1
- data/lib/jekyll/multiple/languages/plugin.rb +2 -2
- data/lib/jekyll/multiple/languages/plugin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cb958eea58bb3968a1dc9d7a5a0c950e14eac14
|
4
|
+
data.tar.gz: 819ab03100ef0ef5bc7c2df97673a0b8b5e12ed6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 }}
|
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
|
-
|
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
|
-
|
38
|
+
@dest = dest_org
|
39
39
|
self.config['baseurl'] = baseurl_org
|
40
40
|
end
|
41
41
|
Jekyll.setlangs({})
|
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.
|
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
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|