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: a90eda21a79655067f6d99cbfe719c5a007f7797a8513ddbbb292ed64513ed17
4
- data.tar.gz: 1d8ece9fd6206caf59839d79da3d1ebd7a890a32f92466be9233588c2358613b
3
+ metadata.gz: 16c9b1c938fefd342ea55c8ca75b198541d3e5ef00cd785cfbe9251a3d653ced
4
+ data.tar.gz: 661807497228354b34eb7f368ad9df48a081a18493663c5621389e62fbf3bb19
5
5
  SHA512:
6
- metadata.gz: 25485625bf21860d2a01a02129f786abac71e9629a440f2141539cb9f0a9a0ecfd8854fb70470d5386d03de73c9c9987e09100d0651e89081b143d3e110512d8
7
- data.tar.gz: 92511bd4e3fe27fd6eda3544d3f8afc42da9f704e04abf9855f3199c4ccdc6f0e53627db68f6c51b9bd1daa9902f1925d7370a5abdde44a82df4cada161f59a2
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? For this we actually
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? inid_dots
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
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "0.0.11".freeze
2
+ VERSION = "0.0.12".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.11
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-18 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll