betterplace-content 0.6.14 → 0.6.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/default.html +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1a647c2ed3cf150a1911e8c958660fb55c177285e5d698c49cfc76644642161
4
- data.tar.gz: f5fbe419715d01af5a7ca77675fec499ca158d304647a3ac6d041fbcdc5bba7e
3
+ metadata.gz: 8cc656c4328be1bec737762381259b505f3b7e47e9533907f1f6ac3fc0096e44
4
+ data.tar.gz: ccc9683d9f5f03370089d048ec4c7a69175667a8fd12daeb2f32c596f46bc299
5
5
  SHA512:
6
- metadata.gz: 51c7bbc18320a3a69664a7c73b39f29ed0f9af6764c2be8fda9608cf03642dca6a21f81c33951440752da786fcdc3b3cab2d4cc7ad65608b53cd073e9268bb44
7
- data.tar.gz: ff7c99d8ddaf1ce95b142c5a05ef2f983cef797e73be87dbcc1d49c546b28a574fdc3294fc3e439560d59b79f1e2d19599cd265b764dd79ce3646ea4244633f8
6
+ metadata.gz: 382f7a65f762108a8a51a980392e36af660a6222a3af855da1d0c8ee4637985bc13f0db11a17e92e9a289b3267883799446ca0ee9090ed2613f21ed2144951b8
7
+ data.tar.gz: 611c35b68b2db73aafca7ac01e313f4a0e3079cdd8b076216fe8ed8d840edc5c30210264e4c6778916237a8016385b5e7373e95b8312f3941f8312026af6651c
@@ -27,8 +27,9 @@
27
27
  {% assign assets_host = 'https://staging-assets.bp42.com' %}
28
28
  {% endif %}
29
29
 
30
- {% 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 %}
31
- {% capture clean_page_url %}{% if page.url == '/' %}#{% else %}{{ page.url }}{% endif %}{% endcapture %}
30
+ {% 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 "/".
31
+ Update 2019-07-19: Another problem that came us is, that URLs endet in .html which also caused a redirect loop. We solve this by removing the .html from the URL.{% endcomment %}
32
+ {% capture clean_page_url %}{% if page.url == '/' %}#{% else %}{{ page.url | replace:'.html','' }}{% endif %}{% endcapture %}
32
33
 
33
34
  <title>{{ page.title | default:'betterplace.org' }}</title>
34
35
 
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.6.14
4
+ version: 0.6.15
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: 2019-07-12 00:00:00.000000000 Z
11
+ date: 2019-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll