jekyll-open-sdg-plugins 1.0.0.rc8 → 1.0.0.rc9
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: c85aa307209e0077f967b1d97737ebb38d3ff70c6c1c49db6bd16d39a4384244
|
4
|
+
data.tar.gz: 632f7ab08f3985b1b13436a2112f36dba43b7394f56317e3d43fe7a0f1146bb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 488369f4cb3ed1081183b50bc440558d30774c51d7e2f75edf2b06e43d8e71394493a2b7b1f052b7e927f4656a85fd275455e6492db3b5d78c90cbd0167858d4
|
7
|
+
data.tar.gz: 81dabd4d0fafefeb4f5c0ff415533764ce0bbbeeb7368270ea30dd72249d6eff62251b74e71e673247c490ed38b84e85290ed4782bd72dad111829348325158c
|
@@ -25,9 +25,9 @@ module JekyllOpenSdgPlugins
|
|
25
25
|
source = JSON.load(open(endpoint))
|
26
26
|
build[key] = source
|
27
27
|
rescue StandardError => e
|
28
|
-
puts e.message
|
29
28
|
# For backwards compatibility, we allow 'translations' to be missing.
|
30
29
|
if key != 'translations'
|
30
|
+
puts e.message
|
31
31
|
abort 'Unable to fetch remote data from: ' + endpoint
|
32
32
|
end
|
33
33
|
end
|
@@ -89,7 +89,10 @@ module JekyllOpenSdgPlugins
|
|
89
89
|
language => url
|
90
90
|
}
|
91
91
|
if language != default_language
|
92
|
-
|
92
|
+
default_language_url = baseurl + url_without_language
|
93
|
+
# Fix potential double-slash.
|
94
|
+
default_language_url = default_language_url.gsub('//', '/')
|
95
|
+
urls[default_language] = default_language_url
|
93
96
|
end
|
94
97
|
languages.each do |other_language|
|
95
98
|
if other_language == language
|