betterplace-content 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/sharing.html +2 -2
- data/_layouts/default.html +5 -2
- data/_layouts/error404.html +3 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33fee79100f7c64916a914d739dfe2cb930eab95
|
|
4
|
+
data.tar.gz: 22dc206b194372acc22ad12c9814880fbb7af524
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21f6d01b4ad89d533073219c892b9b8e2453ac11e6f181072fedcf6389fc011b981919d8ca70ae82a0c6dd340675987bef34770ccd8425dcce8f9f3b92e30f26
|
|
7
|
+
data.tar.gz: 2b8c814d3af79035bfd15d2dca3ed87bc8912fdc72b7be55036dfd027dfc986349c436fe711a638be400fbb1c4ffbd92a681855ca01ce69ba2784eae269e7eba
|
data/_includes/sharing.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<meta property="og:locale" content="{{ site.lang_country }}"/>
|
|
4
4
|
<meta property="og:site_name" content="{{ site.sharing_site_name }}"/>
|
|
5
5
|
<meta property="og:title" content="{{ page.sharing_title | default:page.title }}"/>
|
|
6
|
-
<meta property="og:url" content="{{ include.sharing_host }}{{ site.baseurl }}{{
|
|
6
|
+
<meta property="og:url" content="{{ include.sharing_host }}{{ site.baseurl }}{{ include.clean_page_url }}"/>
|
|
7
7
|
<meta property="og:type" content="article"/>
|
|
8
8
|
<meta property="og:description" content="{{ page.sharing_description }}"/>
|
|
9
9
|
{% if page.sharing_image_path %}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<meta property="fb:pages" content="92443445717" />
|
|
21
21
|
|
|
22
22
|
<meta name="twitter:title" content="{{ page.sharing_title | default:page.title }}"/>
|
|
23
|
-
<meta name="twitter:url" content="https://www.betterplace.org{{ site.baseurl }}{{
|
|
23
|
+
<meta name="twitter:url" content="https://www.betterplace.org{{ site.baseurl }}{{ include.clean_page_url }}"/>
|
|
24
24
|
{% if page.sharing_image_path %}
|
|
25
25
|
<meta name="twitter:image" content="{{ include.sharing_host }}{{ site.baseurl }}{{ page.sharing_image_path }}"/>
|
|
26
26
|
{% else %}
|
data/_layouts/default.html
CHANGED
|
@@ -20,13 +20,16 @@
|
|
|
20
20
|
{% assign assets_host = 'https://staging-assets.bp42.com' %}
|
|
21
21
|
{% endif %}
|
|
22
22
|
|
|
23
|
+
{% comment %}Avoid redirect loop. We cannot have URLs ending in "/" since we redirect those with 302. But our "<root>/index.html" files are translated to "<root>/" since page.url is "/" for index.html. This creates the loop for the facebook-debugger for example. Using this clean_page_url solves the problem for the "<root>/index". For "<root>/<folder>/index" we have a different solution: we need to add a "permalink"-front-matter that has the same name as the folder, which also removes the trailing "/".{% endcomment %}
|
|
24
|
+
{% capture clean_page_url %}{% if page.url == '/' %}{% else %}{{ page.url }}{% endif %}{% endcapture %}
|
|
25
|
+
|
|
23
26
|
<title>{{ page.title | default:'betterplace.org' }}</title>
|
|
24
27
|
|
|
25
28
|
{% if page.translation_url %}
|
|
26
29
|
<link rel="alternate" hreflang="{{ site.translation_lang | replace:'_','-' }}"
|
|
27
30
|
href="{{ page.translation_url | replace:'https://www.betterplace.org',hostname }}">
|
|
28
31
|
{% endif %}
|
|
29
|
-
<link rel="canonical" href="{{ hostname }}{{ site.baseurl }}{{
|
|
32
|
+
<link rel="canonical" href="{{ hostname }}{{ site.baseurl }}{{ clean_page_url }}">{% comment %}So stellen wir sicher, dass wir nicht versehentlich eine content-LOREM.betterplace.org Domain im Index haben.{% endcomment %}
|
|
30
33
|
|
|
31
34
|
<script src="{{ style_host }}/de/layouts/current_javascript/application"></script>
|
|
32
35
|
<script src="{{ style_host }}/de/layouts/current_pack/cookies_banner"></script>
|
|
@@ -53,7 +56,7 @@
|
|
|
53
56
|
|
|
54
57
|
{% include google_analytics.html %}
|
|
55
58
|
|
|
56
|
-
{% include sharing.html sharing_host=hostname %}
|
|
59
|
+
{% include sharing.html sharing_host=hostname clean_page_url=clean_page_url %}
|
|
57
60
|
|
|
58
61
|
{% if site.feed_meta_in_head %}{% feed_meta %}{% endif %}
|
|
59
62
|
</head>
|
data/_layouts/error404.html
CHANGED
|
@@ -8,16 +8,14 @@ head_include: <meta content="noindex" name="robots" />
|
|
|
8
8
|
<div class="row">
|
|
9
9
|
<div class="col-md-24 text-center">
|
|
10
10
|
|
|
11
|
-
<h1 class="
|
|
11
|
+
<h1 class="font-desktop-xl font-phone-lg text-center m-b-md is-inverted">
|
|
12
12
|
{{ page.page_headline | default: 'Diese Seite konnten wir nicht finden' }}
|
|
13
|
-
<br>
|
|
14
|
-
<small>Fehler 404</small>
|
|
15
13
|
</h1>
|
|
14
|
+
<p>Fehler 404</p>
|
|
16
15
|
|
|
17
16
|
{{ content }}
|
|
18
|
-
<br>
|
|
19
17
|
|
|
20
|
-
<p>
|
|
18
|
+
<p class="m-t-md">
|
|
21
19
|
<a href="https://www.betterplace.org{{ page.cta_button_path | default: site.baseurl }}" class="btn btn-primary btn-large link-online-fundraising">
|
|
22
20
|
{{ page.cta_button_text | default: 'Zur Hautpseite' }}
|
|
23
21
|
</a>
|