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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f3aa7efbe4e920be975a242ed4359af336d7f36
4
- data.tar.gz: 4eb5023318a481ddab8da49f9110012005ba65be
3
+ metadata.gz: ae42cf5ad056e6c82f3a3dc78d822a9abff8418d
4
+ data.tar.gz: 4135cf4200d36469d0e80a23e2cbf8898c36d4d1
5
5
  SHA512:
6
- metadata.gz: eec4ae78227cba8005bd49ef6c95e56bc6389498ad51b002e3b015aa322f7a72d855fa62acee7461e6489b9898a20cdc0268a2f7aa720c2d0c2eac79dbff827c
7
- data.tar.gz: 913560fd61442f98970ea498c9459fd4be8d6f46ff52f67c51f56f86a7dada7409cac78525cbea2ea73c45d6c494be87cf2b74c9654b255742b29ef82101523d
6
+ metadata.gz: 1a76cf513cd343dc9002c08f33f18adb04557a4de6aa53f6c43a1be7b4438c4ae4053507d78142cbc8e55778b04e37d7bcd0e978a7d69d160e1f50f8d46e493f
7
+ data.tar.gz: f3891ae5e2d19672beb2177a986418f17fba1e16f027f182c16ff4aa681bb27fb93203034e9c71517d9c98c32fb659e4bf18d9e949c1718a7f6ae6f456ed5cd3
@@ -7,15 +7,7 @@
7
7
  {% endif %}
8
8
  </div>
9
9
  <div class="col-md-10">
10
- <form action="{{ site.baseurl }}/suche" method="get">
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>
@@ -7,15 +7,7 @@
7
7
  {% endif %}
8
8
  </div>
9
9
  <div class="col-md-10">
10
- <form action="{{ site.baseurl }}/search" method="get">
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>
@@ -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
- <!-- Generated {{ 'now' | date: "%F %T" }} -->
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.searchable %}
7
- {% if site.lang == 'de' %}
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/help_search.js"></script>
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.searchable %}
7
- {% if site.lang == 'de' %}
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/help_search.js"></script>
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.searchable %}
7
- {% if site.lang == 'de' %}
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 + '"><h3>' + item.title + '</h3></a>';
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><h3>Es wurde leider kein Ergebnis gefunden.</h3></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.18
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