betterplace-content 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb347afa40214ee88730f063b6d7555c6b3d4cd8
4
- data.tar.gz: d816521ed101be90cd7dd2361dc79f0f106e6f58
3
+ metadata.gz: 33fee79100f7c64916a914d739dfe2cb930eab95
4
+ data.tar.gz: 22dc206b194372acc22ad12c9814880fbb7af524
5
5
  SHA512:
6
- metadata.gz: 97c6b063ac85132c9fd6259cec570d205791b69d0a08dfc7fbdf397bfdaaf54d4cc00855cf28dfb127b9b800b303e70578148b706745ca9abc10ed6ca23b3179
7
- data.tar.gz: a7db1b3add24b34918099734a6410bc44031d9c58e76d948a8d48cc699d36bc3826638160e00a5675c4e029d776c08b9f1004d62e8ad1ad775bf5431b4af6e2e
6
+ metadata.gz: 21f6d01b4ad89d533073219c892b9b8e2453ac11e6f181072fedcf6389fc011b981919d8ca70ae82a0c6dd340675987bef34770ccd8425dcce8f9f3b92e30f26
7
+ data.tar.gz: 2b8c814d3af79035bfd15d2dca3ed87bc8912fdc72b7be55036dfd027dfc986349c436fe711a638be400fbb1c4ffbd92a681855ca01ce69ba2784eae269e7eba
@@ -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 }}{{ page.url }}"/>
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 }}{{ page.url }}"/>
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 %}
@@ -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 }}{{ page.url }}">{% comment %}So stellen wir sicher, dass wir nicht versehentlich eine content--LOREM.betterplace.org Domain im Index haben.{% endcomment %}
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>
@@ -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="thin-h1-style is-inverted">
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>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betterplace-content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - betterplace.org Developers