jekyll-open-sdg-plugins 1.0.0.rc2 → 1.0.0.rc3

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: 7305ad5148ee27f84a29e8c8f21e06d962365fb41b794547474e808970ff0df4
4
- data.tar.gz: 8f57bb20adf4699518c30271d516ad53aae4e2cfe6355f171d960a4aa8746ac1
3
+ metadata.gz: e906019810630c3739bf804892b5dfcee29161b4ff5a21cc030aedf1e0897118
4
+ data.tar.gz: e1d7a573e7a3d621ea6407fde873be79b363efc38f21222fbd2e8ba9a34a5e05
5
5
  SHA512:
6
- metadata.gz: 609ce99f7bc19da26e34d40fba73f7bc206751c617374e797a52eeb14f9baa073196b85f9de8620edfd51b6d4a275e3c0c6e20c37f705eacc70e60261db986b4
7
- data.tar.gz: dda834bfdc2cfa41df4d599e5882530175db442e310f38776816f255e52553f60c2d2de94a00bfee334fe0fc18ef37119deb306b45ea0dda4af5dfeb5cd6ec47
6
+ metadata.gz: 71b97782ea83f10d1452635692bc70428c1e61e6f8d6573898a20c6a8c6da315436c829497c8993ac75c9de2c6cabc7ad1380115a51e70f7bdd3be9605db1de3
7
+ data.tar.gz: 01a33c0033be841a0c181713c25da5fc16e59c453e57965b21114b13a536d1f3f54289a1878ffef832c9a875190f871fc7b4fb26326d0c20db4f5bb2bdc66110
@@ -72,7 +72,7 @@ module JekyllOpenSdgPlugins
72
72
  # Add the language subfolder for all except the default (first) language.
73
73
  dir = index == 0 ? page['folder'] : File.join(language_public, page['folder'])
74
74
  # Create the page.
75
- site.pages << OpenSdgPage.new(site, site.source, dir, page, language)
75
+ site.collections['pages'].docs << OpenSdgPage.new(site, site.source, dir, page, language)
76
76
  end
77
77
  end
78
78
  end
@@ -265,6 +265,12 @@ module JekyllOpenSdgPlugins
265
265
  if default_language != language
266
266
  baseurl += language_public + '/'
267
267
  end
268
+ if !baseurl.start_with? '/'
269
+ baseurl = '/' + baseurl
270
+ end
271
+ if !baseurl.end_with? '/'
272
+ baseurl = baseurl + '/'
273
+ end
268
274
  doc.data['baseurl'] = baseurl
269
275
  doc.data['language_public'] = language_public
270
276
 
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "1.0.0.rc2".freeze
2
+ VERSION = "1.0.0.rc3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.rc2
4
+ version: 1.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brock Fanning