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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e906019810630c3739bf804892b5dfcee29161b4ff5a21cc030aedf1e0897118
|
4
|
+
data.tar.gz: e1d7a573e7a3d621ea6407fde873be79b363efc38f21222fbd2e8ba9a34a5e05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|