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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51cba34a35a6c521ca3f8208424f5c355fb3679f4dab7a47471499ee39249663
|
4
|
+
data.tar.gz: 0b1408147118175ccad7778806c494077617f165a1e1059c410190233ad05d02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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-
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|