betterplace-content 0.1.14 → 0.1.15

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: cbe076d25b30fce21e5739838e4c9c643e542727
4
- data.tar.gz: 9c5d7932d6dd3cab3824378f96c91ddbcfe80b5b
3
+ metadata.gz: 5f9c5c61c3a7b8c641441ab9eb218dab1bb82e7f
4
+ data.tar.gz: 29dab422df60664a58efea97c1a8d0ffbe3fd89a
5
5
  SHA512:
6
- metadata.gz: 77ce8d4519b8ec1529763f9b3d6ff536dbf9832cf8d2354050cba965db4ce6d67f1a43889adf6d0ee80fe19e13e1fa83067322f498e7e718759772e2cd02416e
7
- data.tar.gz: 9b9ea7ead401ab938a702b4b4f228fed3eda338a7b4078fd4a3a6bac5d0dfacc865d9836f70148605497e88380cd5f77ddbdd7038a388b67dc1f2b994b252609
6
+ metadata.gz: ce8c24800990a306998aede1ab0659b68307c2cf589d34c13e7c21db069890027d4ce95a9f2e237553d2140e64482f97517cee5b81ea8970fc386eb3b73145dd
7
+ data.tar.gz: 1bd77e55a15dc7b6f6a4cec9cede42e6dc5a6ba46a556cf601c79131e01065dfafbd736f68b9d61a41d577962b3334f4665dbe15c0e0a6b494774133d4c641ee
@@ -29,8 +29,11 @@
29
29
  {% endcomment %}
30
30
  <li class="secondary">
31
31
  {% if page.translation_path %}
32
- <a onclick="ga('send', 'event', 'navigation header', '/c/{{ page.translation_path }}/');" href="/c/{{ page.translation_path }}/">English</a> {% else %}
33
- <a class="disabled">English</a> {% endif %}
32
+ {% clean_translation_path = page.translation_path | prepend:'/c/' | replace:'//','/' %}
33
+ <a onclick="ga('send', 'event', 'navigation header', '{{ clean_translation_path }}');" href="{{ clean_translation_path }}">English</a>
34
+ {% else %}
35
+ <a class="disabled">English</a>
36
+ {% endif %}
34
37
  </li>
35
38
  <li class="secondary search">
36
39
  <a onclick="ga('send', 'event', 'navigation header', '/{{ site.lang }}/search');" href="/{{ site.lang }}/search">
@@ -29,8 +29,11 @@
29
29
  {% endcomment %}
30
30
  <li class="secondary">
31
31
  {% if page.translation_path %}
32
- <a onclick="ga('send', 'event', 'navigation header', '/c/{{ page.translation_path }}/');" href="/c/{{ page.translation_path }}/">Deutsch</a> {% else %}
33
- <a class="disabled">Deutsch</a> {% endif %}
32
+ {% clean_translation_path = page.translation_path | prepend:'/c/' | replace:'//','/' %}
33
+ <a onclick="ga('send', 'event', 'navigation header', '{{ clean_translation_path }}');" href="{{ clean_translation_path }}">Deutsch</a>
34
+ {% else %}
35
+ <a class="disabled">Deutsch</a>
36
+ {% endif %}
34
37
  </li>
35
38
  <li class="secondary search">
36
39
  <a onclick="ga('send', 'event', 'navigation header', '/{{ site.lang }}/search');" href="/{{ site.lang }}/search">
@@ -2,20 +2,29 @@
2
2
 
3
3
  <meta property="og:locale" content="{{ site.lang_country }}"/>
4
4
  <meta property="og:site_name" content="{{ site.sharing.site_name }}"/>
5
- <meta property="og:title" content="{{ page.sharing.title }}"/>
5
+ <meta property="og:title" content="{{ page.sharing.title || page.page_title }}"/>
6
6
  <!-- <meta property="og:url" content="https://www.betterplace.org/c/ueber-uns/"/> -->
7
7
  <meta property="og:type" content="blog"/>
8
8
  <meta property="og:description" content="{{ page.sharing.description }}"/>
9
+ {% if page.sharing.image.url %}
9
10
  <meta property="og:image" content="{{ page.sharing.image.url }}"/>
10
11
  <meta property="og:image:width" content="{{ page.sharing.image.width }}"/>
11
12
  <meta property="og:image:height" content="{{ page.sharing.image.heigh }}"/>
13
+ {% else %}
14
+ <meta property="og:image" content="https://www.betterplace.org{{ site.baseurl }}/assets/theme_images/og-image-v2.png"/>
15
+ <meta property="og:image:width" content="1200"/>
16
+ <meta property="og:image:height" content="630"/>
17
+ {% endif %}
12
18
  <meta property="article:publisher" content="https://www.facebook.com/betterplace.org"/>
13
19
  <meta property="fb:app_id" content="129531047123577"/>
20
+ <meta property="fb:pages" content="92443445717" />
14
21
 
15
- <meta name="twitter:title" content="{{ page.sharing.title }}"/>
22
+ <meta name="twitter:title" content="{{ page.sharing.title || page.page_title }}"/>
16
23
  <!-- <meta name="twitter:url" content="https://www.betterplace.org/c/ueber-uns/"/> -->
24
+ {% if page.sharing.image.url %}
17
25
  <meta name="twitter:image" content="{{ page.sharing.image.url }}"/>
26
+ {% else %}
27
+ <meta name="twitter:image" content="https://www.betterplace.org{{ site.baseurl }}/assets/theme_images/og-image-v2.png"/>
28
+ {% endif %}
18
29
  <meta name="twitter:card" content="summary_large_image"/>
19
30
  <meta name="twitter:site" content="@betterplace_org"/>
20
-
21
- <meta property="fb:pages" content="92443445717" />
data/_layouts/post.html CHANGED
@@ -27,7 +27,7 @@ layout: default
27
27
  <div class="content-wrapper">
28
28
  <div class="container centered">
29
29
  <div class="row">
30
- <div class="col-md-24">
30
+ <div class="col-md-18">
31
31
  <article>
32
32
  {{ content }}
33
33
  </article>
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.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - betterplace developers