jekyll-open-sdg-plugins 1.0.0.rc18 → 1.0.0.rc19

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: c16c0638e34af249e19c5e8af25674919b5f2062afe6824c269d0f488837f44f
4
- data.tar.gz: c2fdc29cf2d10bbdc29f69f3aa9d8a3f3ddeeda5cb06b9492eca7924f0e5d18f
3
+ metadata.gz: 9294f0d363ea34232c09a0e31a49432677628dffc349974cd7ea5a631639e843
4
+ data.tar.gz: f60550a524648275727fccbeb02c2a572b26b5c5056662bf270c97635c0399c5
5
5
  SHA512:
6
- metadata.gz: fb568f7cc670ae23da7018b92e0f58b3e449743c7c8ed80c9a359c98034375a7f750cbdb733ed16fcd8d9d669dc998d8d05c53225249cebcb7b021e346e5e534
7
- data.tar.gz: 6b7a0fc19f271867fe3494778a06df9a1bb4dadbcdcbb86b20a8d5c780d57823cf9af48c6457101c70b1c5fae997f314b38c4a1802410ec2820758150a8d4ee5
6
+ metadata.gz: d1c9ce82268623c36282ba04ad8d8b8059214e9a42d4b1a8bb8cde702ac78c3abd25d3f3058531e08d3cda7c3495612d3a87e0f72260e748280d0811398d0ed6
7
+ data.tar.gz: 48ac9bfb00da268637d717327bf7e84b02a9241876673f922d2ef73082b3a2169d99a6614b9e8f4c88f2f2f57904209aeff3f5f133e44b39e53eab2acc5c89ff
@@ -317,14 +317,14 @@ module JekyllOpenSdgPlugins
317
317
  doc.data['url_by_language'] = get_all_urls(doc.url, language, languages, languages_public, baseurl)
318
318
  doc.data['t'] = site.data['translations'][language]
319
319
 
320
- # Set the remote_data_prefix for this indicator.
320
+ # Set the remote_data_prefix for this page.
321
321
  if site.config.has_key? 'remote_data_prefix'
322
322
  doc.data['remote_data_prefix'] = site.config['remote_data_prefix']
323
323
  elsif site.config.has_key? 'local_data_folder'
324
- doc.data['remote_data_prefix'] = doc.data['baseurl']
324
+ doc.data['remote_data_prefix'] = normalize_baseurl(baseurl)
325
325
  end
326
326
  if opensdg_translated_builds(site)
327
- doc.data['remote_data_prefix'] += '/' + language
327
+ doc.data['remote_data_prefix'] = File.join(doc.data['remote_data_prefix'], language)
328
328
  end
329
329
 
330
330
  if collection == 'indicators'
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "1.0.0.rc18".freeze
2
+ VERSION = "1.0.0.rc19".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: 1.0.0.rc18
4
+ version: 1.0.0.rc19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brock Fanning
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-30 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll