betterplace-content 0.7.111 → 0.7.112
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 +16 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6de0427027848af378b51d0a48235a87b8b6d11a911014f751095d899f7f4990
|
4
|
+
data.tar.gz: e53908f2047919150eb0778e1baab6e57d53098390b50f2495c3fd9b86a1223a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e4ecb3efb34dc979cc81e0212e5a57a5f7249c9c11f68a236be0b056ec11129d01df4b2017988e8e6e2ed72d41aa5fd9c73ea11326f4bca52cc11abc86dd98e
|
7
|
+
data.tar.gz: 494c35a58e18785c4bc9e9203ab622fb4d02a75ec3ecf7e25c47d938dcc41b14793d63c0e3b939fdeb9a4c7ffe408e2dd87bbabaefe4d57e54c767ea686d83b2
|
data/_layouts/default.html
CHANGED
@@ -110,9 +110,6 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
110
110
|
|
111
111
|
</div>
|
112
112
|
|
113
|
-
<script src="{{ style_host }}/de/layouts/current_pack/application"></script>
|
114
|
-
<script src="{{ style_host }}/de/layouts/current_pack/locale_{{ site.lang }}"></script>
|
115
|
-
<script src="{{ style_host }}/de/layouts/current_pack/homepage"></script>
|
116
113
|
<script>
|
117
114
|
// Make sure we can test the Rails-staging CSS on jekyll-staging.
|
118
115
|
{% comment -%}
|
@@ -136,8 +133,24 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
136
133
|
element.setAttribute('data-host-replaced', 'true')
|
137
134
|
}
|
138
135
|
})
|
136
|
+
|
137
|
+
{% comment -%}
|
138
|
+
// Some URLs in the header files are stored in data attributes for use in React.
|
139
|
+
// These cases can be found by searching for /data[^'"]*['"]http/ in this repo.
|
140
|
+
{% endcomment -%}
|
141
|
+
['data-login-url', 'data-login-check-url', 'data-search-url'].forEach(dataAttr => {
|
142
|
+
document.querySelectorAll("["+ dataAttr + "]").forEach(element => {
|
143
|
+
const modifiedUrl = element.getAttribute(dataAttr).replace('www.betterplace.org', window.location.hostname)
|
144
|
+
element.setAttribute(dataAttr, modifiedUrl)
|
145
|
+
element.setAttribute('data-host-replaced', 'true')
|
146
|
+
})
|
147
|
+
})
|
139
148
|
}
|
140
149
|
</script>
|
141
150
|
|
151
|
+
<script src="{{ style_host }}/de/layouts/current_pack/application"></script>
|
152
|
+
<script src="{{ style_host }}/de/layouts/current_pack/locale_{{ site.lang }}"></script>
|
153
|
+
<script src="{{ style_host }}/de/layouts/current_pack/homepage"></script>
|
154
|
+
|
142
155
|
</body>
|
143
156
|
</html>
|
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.112
|
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: 2022-
|
11
|
+
date: 2022-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
- !ruby/object:Gem::Version
|
218
218
|
version: '0'
|
219
219
|
requirements: []
|
220
|
-
rubygems_version: 3.
|
220
|
+
rubygems_version: 3.3.15
|
221
221
|
signing_key:
|
222
222
|
specification_version: 4
|
223
223
|
summary: betterplace.org's Jekyll Content Theme
|