betterplace-content 0.3.18 → 0.3.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/searchbar-de.html +1 -9
- data/_includes/searchbar-en.html +1 -9
- data/_includes/searchform.html +9 -0
- data/_layouts/default.html +4 -1
- data/_layouts/help.html +3 -7
- data/_layouts/news.html +3 -7
- data/_layouts/post.html +2 -6
- data/assets/js/{help_search.js → search.js} +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae42cf5ad056e6c82f3a3dc78d822a9abff8418d
|
4
|
+
data.tar.gz: 4135cf4200d36469d0e80a23e2cbf8898c36d4d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a76cf513cd343dc9002c08f33f18adb04557a4de6aa53f6c43a1be7b4438c4ae4053507d78142cbc8e55778b04e37d7bcd0e978a7d69d160e1f50f8d46e493f
|
7
|
+
data.tar.gz: f3891ae5e2d19672beb2177a986418f17fba1e16f027f182c16ff4aa681bb27fb93203034e9c71517d9c98c32fb659e4bf18d9e949c1718a7f6ae6f456ed5cd3
|
data/_includes/searchbar-de.html
CHANGED
@@ -7,15 +7,7 @@
|
|
7
7
|
{% endif %}
|
8
8
|
</div>
|
9
9
|
<div class="col-md-10">
|
10
|
-
|
11
|
-
<div class="input-group">
|
12
|
-
<input type="text" id="search-box" name="s" placeholder="{{ include.placeholder | default: "Hilfebereich durchsuchen" }}" class="form-control" value="">
|
13
|
-
<input name="ga_category" value="content-pages--help" type="hidden">
|
14
|
-
<span class="input-group-btn">
|
15
|
-
<button type="submit" class="btn"><i class="fa fa-search fa-fw"></i></button>
|
16
|
-
</span>
|
17
|
-
</div>
|
18
|
-
</form>
|
10
|
+
{% include searchform.html slug='suche' placeholder_fallback='Suchen' %}
|
19
11
|
</div>
|
20
12
|
</div>
|
21
13
|
</div>
|
data/_includes/searchbar-en.html
CHANGED
@@ -7,15 +7,7 @@
|
|
7
7
|
{% endif %}
|
8
8
|
</div>
|
9
9
|
<div class="col-md-10">
|
10
|
-
|
11
|
-
<div class="input-group">
|
12
|
-
<input type="text" id="search-box" name="s" placeholder="{{ include.placeholder | default: "Search help area" }}" class="form-control" value="">
|
13
|
-
<input name="ga_category" value="content-pages--help" type="hidden">
|
14
|
-
<span class="input-group-btn">
|
15
|
-
<button type="submit" class="btn"><i class="fa fa-search fa-fw"></i></button>
|
16
|
-
</span>
|
17
|
-
</div>
|
18
|
-
</form>
|
10
|
+
{% include searchform.html slug='search' placeholder_fallback='Search' %}
|
19
11
|
</div>
|
20
12
|
</div>
|
21
13
|
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<form action="{{ site.baseurl }}/{{ include.slug }}" method="get">
|
2
|
+
<div class="input-group">
|
3
|
+
<input type="text" id="search-box" name="s" placeholder="{{ site.search.placeholder | default: include.placeholder_fallback }}" class="form-control" value="">
|
4
|
+
<input name="ga_category" value="{{ site.search.ga_category }}" type="hidden">
|
5
|
+
<span class="input-group-btn">
|
6
|
+
<button type="submit" class="btn"><i class="fa fa-search fa-fw"></i></button>
|
7
|
+
</span>
|
8
|
+
</div>
|
9
|
+
</form>
|
data/_layouts/default.html
CHANGED
@@ -3,7 +3,10 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="UTF-8" />
|
5
5
|
<meta content="width=device-width, initial-scale=1, maximum-scale=3" name="viewport" />
|
6
|
-
<!--
|
6
|
+
<!--
|
7
|
+
Generated {{ 'now' | date: "%F %T" }}
|
8
|
+
Layout {{ page.layout }}
|
9
|
+
-->
|
7
10
|
{% comment %}Use via `JEKYLL_ENV=production bundle exec jekyll serve`{% endcomment %}
|
8
11
|
{% if jekyll.environment == 'production' %}
|
9
12
|
{% assign style_host = 'https://www.betterplace.org' %}
|
data/_layouts/help.html
CHANGED
@@ -3,12 +3,8 @@ layout: default
|
|
3
3
|
---
|
4
4
|
{% include hero_image.html %}
|
5
5
|
|
6
|
-
{% if site.
|
7
|
-
{%
|
8
|
-
{% include searchbar-de.html %}
|
9
|
-
{% else %}
|
10
|
-
{% include searchbar-en.html %}
|
11
|
-
{% endif %}
|
6
|
+
{% if site.search.show_searchbar %}
|
7
|
+
{% include searchbar-{{ site.lang }}.html %}
|
12
8
|
{% endif %}
|
13
9
|
|
14
10
|
<div class="content-wrapper">
|
@@ -48,4 +44,4 @@ layout: default
|
|
48
44
|
</div>
|
49
45
|
|
50
46
|
<script src="{{ site.baseurl }}/assets/js/lunr.js"></script>
|
51
|
-
<script src="{{ site.baseurl }}/assets/js/
|
47
|
+
<script src="{{ site.baseurl }}/assets/js/search.js"></script>
|
data/_layouts/news.html
CHANGED
@@ -3,12 +3,8 @@ layout: default
|
|
3
3
|
---
|
4
4
|
{% include hero_image.html %}
|
5
5
|
|
6
|
-
{% if site.
|
7
|
-
{%
|
8
|
-
{% include searchbar-de.html placeholder="Neuigkeiten durchsuchen" %}
|
9
|
-
{% else %}
|
10
|
-
{% include searchbar-en.html placeholder="Search News" %}
|
11
|
-
{% endif %}
|
6
|
+
{% if site.search.show_searchbar %}
|
7
|
+
{% include searchbar-{{ site.lang }}.html %}
|
12
8
|
{% endif %}
|
13
9
|
|
14
10
|
<!-- Layout "News" -->
|
@@ -44,4 +40,4 @@ layout: default
|
|
44
40
|
</div>
|
45
41
|
|
46
42
|
<script src="{{ site.baseurl }}/assets/js/lunr.js"></script>
|
47
|
-
<script src="{{ site.baseurl }}/assets/js/
|
43
|
+
<script src="{{ site.baseurl }}/assets/js/search.js"></script>
|
data/_layouts/post.html
CHANGED
@@ -3,12 +3,8 @@ layout: default
|
|
3
3
|
---
|
4
4
|
{% include hero_image.html %}
|
5
5
|
|
6
|
-
{% if site.
|
7
|
-
{%
|
8
|
-
{% include searchbar-de.html %}
|
9
|
-
{% else %}
|
10
|
-
{% include searchbar-en.html %}
|
11
|
-
{% endif %}
|
6
|
+
{% if site.search.show_searchbar %}
|
7
|
+
{% include searchbar-{{ site.lang }}.html %}
|
12
8
|
{% endif %}
|
13
9
|
|
14
10
|
<!-- Layout "Post" -->
|
@@ -7,13 +7,13 @@
|
|
7
7
|
|
8
8
|
for (var i = 0; i < results.length; i++) { // Iterate over the results
|
9
9
|
var item = store[results[i].ref];
|
10
|
-
appendString += '<li><a href="' + item.url + '"><
|
10
|
+
appendString += '<li><a href="' + item.url + '"><h2>' + item.title + '</h2></a>';
|
11
11
|
appendString += '<p>' + item.content.substring(0, 150) + '...</p></li>';
|
12
12
|
}
|
13
13
|
|
14
14
|
searchResults.innerHTML = appendString;
|
15
15
|
} else {
|
16
|
-
searchResults.innerHTML = '<li><
|
16
|
+
searchResults.innerHTML = '<li><h2>Es wurde leider kein Ergebnis gefunden.</h2></li>';
|
17
17
|
}
|
18
18
|
}
|
19
19
|
|
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.3.
|
4
|
+
version: 0.3.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace.org Developers
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- _includes/hero_image.html
|
71
71
|
- _includes/searchbar-de.html
|
72
72
|
- _includes/searchbar-en.html
|
73
|
+
- _includes/searchform.html
|
73
74
|
- _includes/sharing.html
|
74
75
|
- _includes/subnavi-de.html
|
75
76
|
- _includes/subnavi-en.html
|
@@ -114,8 +115,8 @@ files:
|
|
114
115
|
- _sass/post.sass
|
115
116
|
- assets/css/default.sass
|
116
117
|
- assets/js/ga-autotrack.js
|
117
|
-
- assets/js/help_search.js
|
118
118
|
- assets/js/lunr.js
|
119
|
+
- assets/js/search.js
|
119
120
|
- assets/theme_images/about-us/because-icon-desktop.png
|
120
121
|
- assets/theme_images/about-us/because-icon-phone.png
|
121
122
|
- assets/theme_images/about-us/feature-list-bullet.png
|