jekyll-multiple-languages-plugin 1.4.2 → 1.5.0
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 +4 -1
- data/lib/jekyll-multiple-languages-plugin.rb +6 -0
- data/lib/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: adae9df614a152254acf133ff446366b93806ae3
|
|
4
|
+
data.tar.gz: ebea05c05297138b66975622c9e1141b410c8310
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
data/lib/plugin/version.rb
CHANGED
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
|
+
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-
|
|
11
|
+
date: 2016-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|