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.
- checksums.yaml +4 -4
- data/_layouts/default.html +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cc656c4328be1bec737762381259b505f3b7e47e9533907f1f6ac3fc0096e44
|
4
|
+
data.tar.gz: ccc9683d9f5f03370089d048ec4c7a69175667a8fd12daeb2f32c596f46bc299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 382f7a65f762108a8a51a980392e36af660a6222a3af855da1d0c8ee4637985bc13f0db11a17e92e9a289b3267883799446ca0ee9090ed2613f21ed2144951b8
|
7
|
+
data.tar.gz: 611c35b68b2db73aafca7ac01e313f4a0e3079cdd8b076216fe8ed8d840edc5c30210264e4c6778916237a8016385b5e7373e95b8312f3941f8312026af6651c
|
data/_layouts/default.html
CHANGED
@@ -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 "/".
|
31
|
-
|
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.
|
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-
|
11
|
+
date: 2019-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|