betterplace-content 0.7.85 → 0.7.86
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 +10 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c8bfeec1049cb6bf10a3bae797946ae96af2b7c1f1a848082a305b0fd260a77
|
4
|
+
data.tar.gz: b8b552234251ecaab8e7292c7d4434ded87382bf777e7ace05b4e286e044b9d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c610ed2f8b86fb050658e7135e44aff32c01db9bf7fa12d38bd9690ff749222eaf530b3c92cd94e87b8361b934a13c85e55b388b8ac606e548fd9e9c35152c1
|
7
|
+
data.tar.gz: f6b0bd8ba3c90965ba2f5fc8ef244a771bbae42947c80aaec96720f4e4ccd47f1dcae5773d201d25bea8cb1b1a7f5a5ac695eb9f0f6b6b081975a1ab82e28a69
|
data/_layouts/default.html
CHANGED
@@ -114,21 +114,18 @@ 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
|
-
// Make sure we can test the staging CSS.
|
119
|
-
//
|
120
|
-
//
|
121
|
-
|
117
|
+
{%- comment -%}
|
118
|
+
// Make sure we can test the Rails-staging CSS on jekyll-staging.
|
119
|
+
// For Staging: Simulate the environment by replacing the URLs.
|
120
|
+
// For Development: This does nothing, unless you force `JEKYLL_ENV=production`.
|
121
|
+
// This will also replace URLs like the navbar logo URL which is a nice extra.
|
122
|
+
// The attribute data-host-replaced=true is meant as a heads up when using the inspector that something was change here.
|
123
|
+
// We cannot use the same logic for JS – more at https://github.com/betterplace/content--theme/commit/cff6293.
|
124
|
+
{%- endcomment -%}
|
122
125
|
if (window.location.hostname !== 'www.betterplace.org') {
|
123
|
-
document.querySelectorAll("[src]").forEach(element => {
|
124
|
-
if (element.src.includes('www.betterplace.org')) {
|
125
|
-
element.src = element.src.replace('www.betterplace.org', window.location.hostname)
|
126
|
-
}
|
127
|
-
})
|
128
126
|
document.querySelectorAll("[href]").forEach(element => {
|
129
|
-
|
130
|
-
|
131
|
-
}
|
127
|
+
element.href = element.href.replace('www.betterplace.org', window.location.hostname)
|
128
|
+
element.setAttribute('data-host-replaced', 'true')
|
132
129
|
})
|
133
130
|
}
|
134
131
|
</script>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: betterplace-content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.86
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace.org Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|