jekyll-locales 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: 5e1e9d8ecdf4cc772d076592e186830a038f6efde890bf3df4fc0fba88ccf840
4
- data.tar.gz: 7c0f9126b109040cbf0629209103651ee34974dd72f1bd47b9eac995b666c567
3
+ metadata.gz: aa3a9eda7415b229d8e3e3a70c79a9b4df8ea967e3c5c24d71a98f41d5ffcecc
4
+ data.tar.gz: a62f6a4b330051558a4b93f7aa87e00700eb10469fdfbe07349cd510f9507454
5
5
  SHA512:
6
- metadata.gz: db58ab601603d7fb0571e7932f092b62df6949d5956278f35554e72732351f6eeb9a03e80083debb5651faad30f39e8933e43f017ae19fae71196a539b06219b
7
- data.tar.gz: 265e7024461aa7001bece672057fcb899947b11c07c7a43102b1955fa55e2ddb375405ff01b6e07a98e93bbf445b54cddb3ffc51afad019e98a07e39aca8fffc
6
+ metadata.gz: c3b2d4214a63d1c7da7b472edb2c997b808749e759e308bdb5704862b3705fa3bee0bcc242c7ef296da6e64133ef6b995e01ec436cec4499cde78c41f3eb8edb
7
+ data.tar.gz: faf5e2bf08714ae0c4b5c615f849600b747821238cb3c58d1020f85f4b17a28c3d61293d5b3b287ae5a0c40ebfa4c3b052377b52ac2c19ef0dbda6b87144f2c4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-locales (0.1.5)
4
+ jekyll-locales (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,4 +2,5 @@
2
2
 
3
3
  require 'jekyll/site'
4
4
  require 'jekyll/locales/site'
5
+ require 'jekyll/locales/site_drop'
5
6
  require 'jekyll/locales/hooks/page_post_init'
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'jekyll/drops/site_drop'
4
+
5
+ module Jekyll
6
+ module Drops
7
+ # Make i18n available to Liquid as site.i18n
8
+ class SiteDrop
9
+ def i18n
10
+ @i18n ||= @obj.data[@obj.config['lang']]
11
+ end
12
+ end
13
+ end
14
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Locales
5
- VERSION = '0.1.5'
5
+ VERSION = '0.1.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-locales
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-27 00:00:00.000000000 Z
11
+ date: 2019-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,6 +92,7 @@ files:
92
92
  - lib/jekyll/locales.rb
93
93
  - lib/jekyll/locales/hooks/page_post_init.rb
94
94
  - lib/jekyll/locales/site.rb
95
+ - lib/jekyll/locales/site_drop.rb
95
96
  - lib/jekyll/locales/version.rb
96
97
  homepage: https://0xacab.org/sutty/jekyll/jekyll-locales
97
98
  licenses: