jekyll-multiple-languages-plugin 1.2.8 → 1.2.9

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: 1bef6852a05b7a21c25eba5fa9198e6dc74d5bb9
4
- data.tar.gz: d0be8a101a3f8389c6f41af664b614d96dfbd47b
3
+ metadata.gz: 70d8b7b44997db4533f328c11895cc0135200cb2
4
+ data.tar.gz: 697d1c42e3cbf710660f76bf6082d78257751294
5
5
  SHA512:
6
- metadata.gz: 8ed37876af2891151477fcda788e7217e6a4b30311f3d31fffd0a56987a53e5230df9167159c9600f9b28b486640cee8cc3a1bb47cb84a2af10e8760454c0b57
7
- data.tar.gz: 6cc97f0ae0d71ebc17fa61158acc3175d5a0e330c03d15386f3d97701aa9fd2973625fe8ada3581371482d4450921f531b0db38fb65c62f78cc03044f18ccb9c
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
@@ -3,5 +3,6 @@ markdown: redcarpet
3
3
  pygments: true
4
4
 
5
5
  baseurl: ""
6
+ permalink: /:title/
6
7
 
7
8
  languages: ["it", "en", "es"]
@@ -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.config['exclude']
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
- self.config['exclude'] = exclude_org.concat(exclude_from_localizations)
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'
@@ -2,7 +2,7 @@ module Jekyll
2
2
  module Multiple
3
3
  module Languages
4
4
  module Plugin
5
- VERSION = "1.2.8"
5
+ VERSION = "1.2.9"
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.8
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-12 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler