jekyll-open-sdg-plugins 0.0.11 → 0.0.12
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: 16c9b1c938fefd342ea55c8ca75b198541d3e5ef00cd785cfbe9251a3d653ced
|
4
|
+
data.tar.gz: 661807497228354b34eb7f368ad9df48a081a18493663c5621389e62fbf3bb19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee54ba25f833387c4bd61b7c4fda2d24a4722ea3a43664a676e3708c1b81001610f1a8eda3cd0977ab94ce5cfdd407a53586910a6c6a7db7696ec8e04467da5b
|
7
|
+
data.tar.gz: e59c8876112b4356dc815b0c55195d785c9689ec67e5f2f42e51a6761dd4e40099af1511b2c09e90bdbea9511d1f25465d5de15f3ce62623c17eba67c8e343b9
|
@@ -83,13 +83,15 @@ module Jekyll
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
# 4. Is this a global indicator with a translation?
|
87
|
-
# need the inid dot-delimited.
|
86
|
+
# 4. Is this a global indicator with a translation?
|
88
87
|
if !name
|
88
|
+
# For backwards compatibility, look for both dot and dash-delimited keys.
|
89
89
|
inid_dots = inid.gsub('-', '.')
|
90
90
|
if translations.has_key? language
|
91
91
|
if translations[language].has_key? 'global_indicators'
|
92
|
-
if translations[language]['global_indicators'].has_key?
|
92
|
+
if translations[language]['global_indicators'].has_key? inid
|
93
|
+
name = translations[language]['global_indicators'][inid]['title']
|
94
|
+
elsif translations[language]['global_indicators'].has_key? inid_dots
|
93
95
|
name = translations[language]['global_indicators'][inid_dots]['title']
|
94
96
|
end
|
95
97
|
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.
|
4
|
+
version: 0.0.12
|
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-06-
|
11
|
+
date: 2019-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|