jekyll-open-sdg-plugins 0.0.2 → 0.0.3

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: df572d1ef49b272b66e85dd61d431086fc51f87b352fda68b68a5f1c9ced841e
4
- data.tar.gz: 8e044042d7f52c9fc64418be34192443d198b260e8554a2c7553936d74fd3ad6
3
+ metadata.gz: 51cba34a35a6c521ca3f8208424f5c355fb3679f4dab7a47471499ee39249663
4
+ data.tar.gz: 0b1408147118175ccad7778806c494077617f165a1e1059c410190233ad05d02
5
5
  SHA512:
6
- metadata.gz: ba64c48c74554f547a6800acb5af303b168e97a38bd25a95b7b4e4adfb47dc52a3b4f1ae537155ac02d1c8e2c995423a1e828bf7133cce7218320633d05db351
7
- data.tar.gz: 3db8a54dc10b34945816962f4f54034c2135b13359fdab84fe5ae6ca72aa9f42fd5826e259fb07bf95fa540c0b53a017e6de2723981abd31c98503cf2bcd17dd
6
+ metadata.gz: 83a221d67965b8a8c70a30679a5c32d371ddd241a5ebfb3d0d4f4d2eed851fa75a24bdae164fd17516ce236f1d7ac11f3a981d1b69b7e632871950ceadf50531
7
+ data.tar.gz: 49ff64ec8538d3b84901c08af4936b38d83b442bb285399d455cf7cdcc43343855711d3c2ae042b8e4e121a3b776ff85f94aca634b27c114756a846d13053d0e
@@ -6,6 +6,13 @@ module Jekyll
6
6
  # language of the current page. Or if none is found, returns the original
7
7
  # key.
8
8
  def t(key)
9
+
10
+ # Safety code - abort now if key is nil.
11
+ if key.nil?
12
+ return ""
13
+ end
14
+
15
+ # Determine the language of the current page.
9
16
  translations = @context.registers[:site].data['translations']
10
17
  language = @context.environments.first["page"]['language']
11
18
 
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-open-sdg-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brock Fanning
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-23 00:00:00.000000000 Z
11
+ date: 2019-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll