jekyll-multiple-languages-plugin 1.4.2 → 1.5.0

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: a24d785fff6763046ceeea5785d3ad0000496f16
4
- data.tar.gz: 6a5db73c7439aee25ceb892d34ebf8d6466c0d6f
3
+ metadata.gz: adae9df614a152254acf133ff446366b93806ae3
4
+ data.tar.gz: ebea05c05297138b66975622c9e1141b410c8310
5
5
  SHA512:
6
- metadata.gz: 540e03c839745d68f91383dcbee1026dedf31e6f7c6e5c02962dea1db63a71f34fd4647ab20db081e1f33f1148cd588c812ecb825ccb2d9d8b2fcc4861577b10
7
- data.tar.gz: 9b5ae238698d5412448618779a616522c1e065912ee114ac5e36950b107d8a0cf97a5e4a6d8c0948502e5648f07ddaafdd51aaf5d360940471e733667dcda724
6
+ metadata.gz: 3cca64fa57399de3656aeb5261c4d6d56500f89483e885b80068876cf53efdc2e540518be3bbe79e2348bc3ccafcd05985fdae6ba39e3c962b9e9c6dd5e6ce64
7
+ data.tar.gz: cc3dd268294b7ca2d310d39d954af09e053722bb7a60a06e4dc882896e963b5a6ad5fb36a0afd45c2f2cb652901fe48aed63085e9acfb9188b3bbcf424e2c2dd
data/README.md CHANGED
@@ -40,7 +40,7 @@ Table of Contents
40
40
 
41
41
  ## 1. Current Release Notice
42
42
 
43
- 1.4.1 is the current stable release.
43
+ 1.5.0 is the current stable release.
44
44
 
45
45
  Users that update from older versions to 1.4.0 or newer must change their `_config.yml` for the plugin to be loaded. Please see the `Installation` section bellow for the new string used to load the plugin.
46
46
 
@@ -357,6 +357,9 @@ Then, create a file named `about.md` under `_i18n/en` with the English content.
357
357
 
358
358
 
359
359
  ## 8. Changelog
360
+ * 1.5.0
361
+ * Enables Liquid expansions within Liquid Tags.
362
+ * The example website post language switchers were rewritten in an algorithmic way.
360
363
  * 1.4.2
361
364
  * Exposes the `site.translations` hash containing the translated strings to Liquid.
362
365
  * 1.4.1
@@ -270,6 +270,8 @@ module Jekyll
270
270
  key = @key
271
271
  end
272
272
 
273
+ key = Liquid::Template.parse(key).render(context) # Parses and renders some Liquid syntax on arguments (allows expansions)
274
+
273
275
  site = context.registers[:site] # Jekyll site object
274
276
 
275
277
  lang = site.config['lang']
@@ -313,6 +315,8 @@ module Jekyll
313
315
  file = @file
314
316
  end
315
317
 
318
+ file = Liquid::Template.parse(file).render(context) # Parses and renders some Liquid syntax on arguments (allows expansions)
319
+
316
320
  site = context.registers[:site] # Jekyll site object
317
321
 
318
322
  includes_dir = File.join(site.source, '_i18n/' + site.config['lang'])
@@ -375,6 +379,8 @@ module Jekyll
375
379
  key = @key
376
380
  end
377
381
 
382
+ key = Liquid::Template.parse(key).render(context) # Parses and renders some Liquid syntax on arguments (allows expansions)
383
+
378
384
  site = context.registers[:site] # Jekyll site object
379
385
 
380
386
  key = key.split
@@ -1,6 +1,6 @@
1
1
  module Jekyll
2
2
  module MultipleLanguagesPlugin
3
- VERSION = "1.4.2"
3
+ VERSION = "1.5.0"
4
4
  end
5
5
  end
6
6
 
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.4.2
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Kurtsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-26 00:00:00.000000000 Z
11
+ date: 2016-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler