betterplace-content 0.7.84 → 0.7.85

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/default.html +19 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 272410f8230f7110bdc8260e320f837e0908bfdbf971d701264522ee12758986
4
- data.tar.gz: dad9a31f348698f9a744cf4ab6a073338b5ccefaf49d91f952e7950e96632e40
3
+ metadata.gz: ded70697e24d4949d798f4ce07580869aec5078e80e13796bb43de822eb65de6
4
+ data.tar.gz: 2d550bfe4ea0c5cfea042325a540cd9f0377f4430249a38e8dd7375de028e9ee
5
5
  SHA512:
6
- metadata.gz: 324432c690870e4eba5d6afdadafec694561daa702311d28970d9f6f4008eb4978d40b062e8b1165fc415f7de95f462098b576f7fbc54d87946aba9abc44b029
7
- data.tar.gz: b6e52e8e4f7880d27761a6d06926f3bfa0b856777db75055736371a38c1105df3becd8b0e59e6b17c7501b98e2044079cce29ce53946b869f2453ac7079380d1
6
+ metadata.gz: 7507e81c321734a8c91e59c8767d8cd89efbd5c5d9a867b020a685f2bb6b3f9527ce31fbb110a72d529fa08fd7eb6b7984353bc2cc1f651e2925c17049f9fc4c
7
+ data.tar.gz: cdfcfe0692a05b87046b9c09cdac4e5756728df49bedef291ee0a35cd74fc67615498fe83b00ff28722bf131434608e68da4d383cc5471dd5d46ae17091a7fc4
@@ -113,6 +113,25 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
113
113
  <script src="{{ style_host }}/de/layouts/current_pack/utils"></script>
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
+ <script>
117
+ {% comment %}
118
+ // Make sure we can test the staging CSS.
119
+ // For Staging: Simmulate the environment by replacing the URLs
120
+ // For Development: This does nothing, unless you force `JEKYLL_ENV=production`
121
+ {% endcomment %}
122
+ 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
+ document.querySelectorAll("[href]").forEach(element => {
129
+ if (element.href.includes('www.betterplace.org')) {
130
+ element.href = element.href.replace('www.betterplace.org', window.location.hostname)
131
+ }
132
+ })
133
+ }
134
+ </script>
116
135
 
117
136
  </body>
118
137
  </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.84
4
+ version: 0.7.85
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-12 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll