betterplace-content 0.7.26 → 0.7.27
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 +11 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b54cd9ac8523de78ef0608aa4a51214a677a03f35dcf238b0384400308e27d54
|
4
|
+
data.tar.gz: 47e1961de27676f8620ebc0add5fffc5c122a314b033732ad23f2723d933c42b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2db9e1aad16103dd4e19b18bb777eb8eea05c01c79f1ac9b568aeceec8697101a3dfd0e4ceea44ed3c0a7a21568ec597ef2f3c8664a1371fc25beeb4ab377631
|
7
|
+
data.tar.gz: e49c6d003041c46b6bad8c836642b0981385af2bbc66e819010dfb74efbec0f2a38726a72c82f829dd544ee6c29bd4755bfcc0d4043d1673fab13f73b29052cf
|
data/_layouts/default.html
CHANGED
@@ -35,15 +35,20 @@ Update 2019-07-19: Another problem that came us is, that URLs endet in .html whi
|
|
35
35
|
<title>{{ page.title | default:'betterplace.org' }}</title>
|
36
36
|
|
37
37
|
{% if page.translation_url %}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
|
39
|
+
{% if site.lang == "de" %}
|
40
|
+
{% assign default_url = hostname | append: site.baseurl %}
|
41
|
+
{% else %}
|
42
|
+
{% assign default_url = page.translation_url %}
|
43
|
+
{% endif %}
|
44
|
+
|
45
|
+
<link rel="alternate" hreflang="{{ site.translation_lang | replace:'_','-' }}" href="{{ page.translation_url | replace:'https://www.betterplace.org',hostname }}">
|
46
|
+
<link rel="alternate" hreflang="x-default" href="{{ default_url }}">
|
47
|
+
|
42
48
|
{% endif %}
|
43
49
|
{% if page.multiple_translation_urls %}
|
44
50
|
{% for item in page.multiple_translation_urls %}
|
45
|
-
<link rel="alternate" hreflang="{{ item[0] | replace:'_','-' }}"
|
46
|
-
href="{{ item[1] | replace:'https://www.betterplace.org',hostname }}">
|
51
|
+
<link rel="alternate" hreflang="{{ item[0] | replace:'_','-' }}" href="{{ item[1] | replace:'https://www.betterplace.org',hostname }}">
|
47
52
|
{% endfor %}
|
48
53
|
{% endif %}
|
49
54
|
<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 %}
|