betterplace-content 0.7.121 → 0.7.125
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 -14
- 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: d084c61df4becd59c023de0e39275110342e8cff0556958e93a1bf33a6c1460e
|
4
|
+
data.tar.gz: 9553e8952cfdb4fbfa38a391e18bfdd690e122c3be8729674b860ac861a197dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bf04ac69f54b0ef487b7081655dc8ce8ff8589d43f51d0aa7ca44cb351ce475cbeefde475b5a3bd6b14b91769be82734a33039e1e5a2015cbb9c521b93672bf
|
7
|
+
data.tar.gz: bb4eb0727f13e60c90cd0d5ea1ce89e99122931d93854645ad094694211934bcbac1e9cbb919a4aa75e80922af864d2c602d5fa46f59f4e0139832263e98b79c
|
data/_layouts/default.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="UTF-8" />
|
5
5
|
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" />
|
6
6
|
<meta name='csrf-token' content='' />
|
7
|
-
|
7
|
+
<script src="{{ style_host }}/{{ site.lang }}/layouts/packs.js"></script>
|
8
8
|
<script>
|
9
9
|
if (window.innerWidth > 451) {
|
10
10
|
document.querySelector("meta[name='viewport']").setAttribute('content', 'width=1100');
|
@@ -59,8 +59,6 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
59
59
|
<link rel="stylesheet" href="{{ style_host }}{{ site.baseurl }}{{ site._options.content.styles }}" />
|
60
60
|
{% endif %}
|
61
61
|
|
62
|
-
<link rel="stylesheet" href="{{ style_host }}/de/layouts/current_stylesheet/application" />
|
63
|
-
|
64
62
|
<link rel="shortcut icon" href="https://betterplace-assets.betterplace.org/static-images/logos/favicon.png" />
|
65
63
|
|
66
64
|
{{ page.head_include }}{{ site.head_include }}{{ layout.head_include }}
|
@@ -74,7 +72,8 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
74
72
|
</head>
|
75
73
|
{% assign transparent_header = page.transparent_header | default: site.transparent_header %}
|
76
74
|
<body class="{% if page.url contains '404' %} error404 {% else %} {{ site.css_root }} {% endif %}{% if transparent_header %} has-transparent-header {% endif %}">
|
77
|
-
|
75
|
+
|
76
|
+
<div id="fb-root"></div>
|
78
77
|
|
79
78
|
<div class='fixed-viewport-width bg-white'>
|
80
79
|
|
@@ -134,9 +133,20 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
134
133
|
})
|
135
134
|
})
|
136
135
|
|
137
|
-
const
|
136
|
+
const updateLinks = () => {
|
137
|
+
// attach utm params to bp links, except those that already have utm params
|
138
|
+
const utmParams = [...window.location.search.matchAll(/utm[^=]+=[^&]+/g)].join('&')
|
139
|
+
if (utmParams) {
|
140
|
+
document.querySelectorAll("a[href]").forEach(a => {
|
141
|
+
if (/(^\/|\.(bp|betterplace))(?!.*[?&]utm)/.test(a.href)) {
|
142
|
+
a.href = `${a.href}${a.href.includes('?') ? '&' : '?'}${utmParams}`
|
143
|
+
}
|
144
|
+
})
|
145
|
+
}
|
146
|
+
|
138
147
|
if (/\.(?:org|dev|cloud)/.test(window.location.hostname)) return
|
139
148
|
|
149
|
+
// replace host, e.g. with staging host
|
140
150
|
document.querySelectorAll("[href]").forEach(element => {
|
141
151
|
if (element.href.includes('www.betterplace.org')) {
|
142
152
|
element.href = element.href.replace('www.betterplace.org', window.location.hostname)
|
@@ -145,15 +155,7 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
145
155
|
})
|
146
156
|
}
|
147
157
|
|
148
|
-
document.addEventListener('DOMContentLoaded',
|
158
|
+
document.addEventListener('DOMContentLoaded', updateLinks)
|
149
159
|
</script>
|
150
|
-
|
151
|
-
{% comment -%}
|
152
|
-
// The application JS pack is needed for the header, footer,
|
153
|
-
// and some other rare cases like project-swiper, counter-widget, timer-widget
|
154
|
-
{% endcomment -%}
|
155
|
-
<script src="{{ style_host }}/de/layouts/current_pack/application"></script>
|
156
|
-
<script src="{{ style_host }}/de/layouts/current_pack/locale_{{ site.lang }}"></script>
|
157
|
-
|
158
160
|
</body>
|
159
161
|
</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.125
|
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-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
- !ruby/object:Gem::Version
|
213
213
|
version: '0'
|
214
214
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
215
|
+
rubygems_version: 3.3.15
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: betterplace.org's Jekyll Content Theme
|