jekyll-i18n 1.0.0 → 1.0.2

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.
Files changed (3) hide show
  1. data/README.md +2 -0
  2. data/lib/jekyll-i18n.rb +1 -1
  3. metadata +6 -6
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  **Jekyll i18n** is a plugin that enables simplistic multi-language site designs using Jekyll. It is written by [Liam Z](liamz.co) and licensed under the GPLv3.
2
2
 
3
3
  # Install
4
+ > gem install jekyll-i18n
4
5
 
6
+ Then add `require 'jekyll-i18n` to `_plugins/ext.rb`.
5
7
 
6
8
  # Tutorial
7
9
  The basic principle is that we distinguish between two types of content:
data/lib/jekyll-i18n.rb CHANGED
@@ -66,7 +66,7 @@ module Jekyll
66
66
 
67
67
  alias_method :_render_liquid, :render_liquid
68
68
 
69
- def render_liquid(content, payload, info)
69
+ def render_liquid(content, payload, info, path = nil)
70
70
  info[:registers][:page]['lang'] = data['lang']
71
71
  _render_liquid(content, payload, info)
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-06 00:00:00.000000000 Z
12
+ date: 2013-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.0
21
+ version: 1.3.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.0.0
29
+ version: 1.3.1
30
30
  description: ! "\t\tjekyll-i18n is a Jekyll plugin that introduces a 't' tag/filter
31
31
  that translates phrases based on translation files found in _i18n/*.yml. It also
32
32
  introduces new mechanisms in the build process for generating language-specific