betterplace-content 0.7.86 → 0.7.87
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/default.html +7 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31d44c3e0cf3baecdb3100e5b659ceae8114a2b0ff922f76a80e5414f0ae2d23
|
4
|
+
data.tar.gz: 395c8ac473faa93594452614b39bc4d11302c52d2f75298f0462af2b1544d0c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10fd3aee47f951ecc84abd9bd5603da3a6368912438ea1f090cc6de06eeb44c22b345238af2bba18ebfa0be85b9fa2c3b68cde9bd6066c5591123ecb7dce7a37
|
7
|
+
data.tar.gz: d65c91514775a434cb29f1cb6a057c63c961504f671ae84e62cb6de6cbc7eec2b9825a5ec7792e4eba1ccc5b26c96fb77f24c9fd1112b755de25a7bd2b0d3d12
|
data/_layouts/default.html
CHANGED
@@ -114,18 +114,20 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
114
114
|
<script src="{{ style_host }}/de/layouts/current_pack/locale_{{ site.lang }}"></script>
|
115
115
|
<script src="{{ style_host }}/de/layouts/current_pack/homepage"></script>
|
116
116
|
<script>
|
117
|
-
|
118
|
-
|
117
|
+
// Make sure we can test the Rails-staging CSS on jekyll-staging.
|
118
|
+
{% comment -%}
|
119
119
|
// For Staging: Simulate the environment by replacing the URLs.
|
120
120
|
// For Development: This does nothing, unless you force `JEKYLL_ENV=production`.
|
121
121
|
// This will also replace URLs like the navbar logo URL which is a nice extra.
|
122
122
|
// The attribute data-host-replaced=true is meant as a heads up when using the inspector that something was change here.
|
123
123
|
// We cannot use the same logic for JS – more at https://github.com/betterplace/content--theme/commit/cff6293.
|
124
|
-
{
|
124
|
+
{% endcomment -%}
|
125
125
|
if (window.location.hostname !== 'www.betterplace.org') {
|
126
126
|
document.querySelectorAll("[href]").forEach(element => {
|
127
|
-
|
128
|
-
|
127
|
+
if (element.href.includes('www.betterplace.org')) {
|
128
|
+
element.href = element.href.replace('www.betterplace.org', window.location.hostname)
|
129
|
+
element.setAttribute('data-host-replaced', 'true')
|
130
|
+
}
|
129
131
|
})
|
130
132
|
}
|
131
133
|
</script>
|