jekyll-multiple-languages-plugin 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/example/_config.yml +1 -0
- data/lib/jekyll/multiple/languages/plugin.rb +6 -3
- 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: 70d8b7b44997db4533f328c11895cc0135200cb2
|
|
4
|
+
data.tar.gz: 697d1c42e3cbf710660f76bf6082d78257751294
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bba07c84820767d33bded5e4695f92064f93bff9168e7c058e5bd5cea05d18289fd63a758c233064fda25e6a5e29ca9555d9ddbda7cb2bb90f5c7f609d7b2a85
|
|
7
|
+
data.tar.gz: 502bab34718f61702de75a4b0e9e6b6d0126633918426a38b226daaa9657264d6d0821d778dd71309e634666db1d0ed2051d8e4b84f88977159197dbe8f6637e
|
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.9
|
|
64
|
+
* Bug fix when excluding files from translation, again thanks to [@h6](https://github.com/H6)
|
|
63
65
|
* 1.2.8
|
|
64
66
|
* Support for excluding files from translation, thanks to [@h6](https://github.com/H6)
|
|
65
67
|
* 1.2.7
|
|
@@ -244,3 +246,4 @@ This snippet will create a link that will toggle between Swedish and English. A
|
|
|
244
246
|
- [@Davrandom](https://github.com/davrandom), plugin usage example
|
|
245
247
|
- [@agramian](https://github.com/agramian), fallback to default language
|
|
246
248
|
- [@h6](https://github.com/H6), exclude files from translation
|
|
249
|
+
- [@leoditommaso)(https://github.com/leoditommaso), update the example page
|
data/example/_config.yml
CHANGED
|
@@ -18,7 +18,7 @@ module Jekyll
|
|
|
18
18
|
config['baseurl_root'] = self.config['baseurl']
|
|
19
19
|
baseurl_org = self.config['baseurl']
|
|
20
20
|
languages = self.config['languages']
|
|
21
|
-
exclude_org = self.
|
|
21
|
+
exclude_org = self.exclude
|
|
22
22
|
dest_org = self.dest
|
|
23
23
|
|
|
24
24
|
#Loop
|
|
@@ -32,16 +32,19 @@ module Jekyll
|
|
|
32
32
|
@dest = @dest + "/" + lang
|
|
33
33
|
self.config['baseurl'] = self.config['baseurl'] + "/" + lang
|
|
34
34
|
self.config['lang'] = lang
|
|
35
|
+
|
|
35
36
|
# exclude folders or files from beeing copied to all the language folders
|
|
36
37
|
exclude_from_localizations = self.config['exclude_from_localizations'] || []
|
|
37
|
-
|
|
38
|
+
@exclude = @exclude + exclude_from_localizations
|
|
39
|
+
|
|
38
40
|
puts "Building site for language: \"#{self.config['lang']}\" to: #{self.dest}"
|
|
39
41
|
process_org
|
|
40
42
|
|
|
41
43
|
#Reset variables for next language
|
|
42
44
|
@dest = dest_org
|
|
45
|
+
@exclude = exclude_org
|
|
46
|
+
|
|
43
47
|
self.config['baseurl'] = baseurl_org
|
|
44
|
-
self.config['exclude'] = exclude_org
|
|
45
48
|
end
|
|
46
49
|
Jekyll.setlangs({})
|
|
47
50
|
puts 'Build complete'
|
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.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Kurtsson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|