betterplace-content 0.3.3 → 0.3.4

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: 955a1bda0eeac64979b5399c2bf921c16887ce27
4
- data.tar.gz: 825c42dc4f030a1d48ae192ea77075e1942a5f8c
3
+ metadata.gz: d306a980bc6b20a87f92f27a0ee279e0ce1806ef
4
+ data.tar.gz: 20822d888535c881193edcb28c71044c34c293ff
5
5
  SHA512:
6
- metadata.gz: 131508bfe6fd422a5fab3ede6622ab33125fccc4b135e171c9c11e91eafe21f42e4d9502ab698154a942b42e47e75f2e4ad0e56bbd2363faec295785d19403ae
7
- data.tar.gz: 645380f695417f1a9ecb791a5948494f3cccbbaf7fe2fb04b03451723af692bb55c2810e78ebf6b5b8f39e18e1924daa2503c8c176e39943b47dea44c367bfd1
6
+ metadata.gz: b7368356980bddf6f31684b5dd0ab54b0a362315e81f1b63f78caf148d4bb4768fab93c7843fa2e9e35382c05e9c0f97bf886f8636c06ee3c48cc66882707f05
7
+ data.tar.gz: c0bc62780a244d9a08f2f849cd1c86401362cf71ec3e014b3393b777b87847ce9df172985aed50ac62dc5d626b2b123e504d30100dc18f64390bc98e879c7c47
@@ -12,9 +12,9 @@
12
12
  <div class="row">
13
13
  <div class="col-md-10 col-md-offset-7">
14
14
  {% if site.lang == 'de' %}
15
- {% include help_searchbar-de.html %}
15
+ {% include searchbar-de.html %}
16
16
  {% else %}
17
- {% include help_searchbar-en.html %}
17
+ {% include searchbar-en.html %}
18
18
  {% endif %}
19
19
  </div>
20
20
  </div>
@@ -1,6 +1,6 @@
1
1
  <form action="{{ site.baseurl }}/suche" method="get">
2
2
  <div class="input-group">
3
- <input type="text" id="search-box" name="s" placeholder="Hilfebereich durchsuchen" class="form-control" value="">
3
+ <input type="text" id="search-box" name="s" placeholder="{{ include.placeholder | default: "Hilfebereich durchsuchen" }}" class="form-control" value="">
4
4
  <input name="ga_category" value="content-pages--help" type="hidden">
5
5
  <span class="input-group-btn">
6
6
  <button type="submit" class="btn"><i class="fa fa-search fa-fw"></i></button>
@@ -1,6 +1,6 @@
1
1
  <form action="{{ site.baseurl }}/search" method="get">
2
2
  <div class="input-group">
3
- <input type="text" id="search-box" name="s" placeholder="Search help area" class="form-control" value="">
3
+ <input type="text" id="search-box" name="s" placeholder="{{ include.placeholder | default: "Search help area" }}" class="form-control" value="">
4
4
  <input name="ga_category" value="content-pages--help" type="hidden">
5
5
  <span class="input-group-btn">
6
6
  <button type="submit" class="btn"><i class="fa fa-search fa-fw"></i></button>
@@ -0,0 +1,45 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% include hero_image.html %}
5
+
6
+ <div class="content-wrapper layout-help">
7
+ <div class="container centered">
8
+ <div class="row">
9
+ <div class="col-md-offset-14 col-md-10">
10
+ {% if site.lang == 'de' %}
11
+ {% include searchbar-de.html placeholder="Neuigkeiten durchsuchen" %}
12
+ {% else %}
13
+ {% include searchbar-en.html placeholder="Search news" %}
14
+ {% endif %}
15
+ </div>
16
+
17
+ <div class="col-md-24">
18
+ <h1 class="text-center m-b">{{ page.title }}</h1>
19
+ </div>
20
+
21
+ <div class="col-md-24">
22
+ <div class="row news-article">
23
+ {% if page.author %}
24
+ <div class="help-meta-information m-b">
25
+ <div class="help-author">
26
+ <i class="fa fa-user-circle-o fa-fw"></i>
27
+ {{ page.author }}
28
+ </div>
29
+
30
+ <div class="help-modified">
31
+ <i class="fa fa-clock-o fa-fw"></i>
32
+ {{ page.modified | date:"%d.%m.%Y" }}
33
+ </div>
34
+ </div>
35
+ {% endif %}
36
+
37
+ {{ content }}
38
+ </div>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </div>
43
+
44
+ <script src="{{ site.baseurl }}/assets/js/lunr.js"></script>
45
+ <script src="{{ site.baseurl }}/assets/js/help_search.js"></script>
data/_sass/news.sass CHANGED
@@ -1,19 +1,57 @@
1
- body.news
2
- .post
3
- margin-top: 50px
1
+ .news-post-teaser
2
+ display: flex
3
+ flex-direction: column
4
+ height: 390px
5
+ display: block
6
+ color: $very-dark-grey
7
+ text-decoration: none
8
+ font-weight: normal
9
+
10
+ &:hover,
11
+ &:focus
12
+ text-decoration: none
13
+ color: inherit
4
14
 
5
15
  h2
6
- font-size: 145%
16
+ text-decoration: underline
17
+
18
+ .news-post-teaser-image
19
+ flex-grow: 1
20
+ width: 100%
21
+ height: 200px
22
+ background-size: cover
23
+
24
+ .news-post-teaser-author
25
+ color: $medium-grey
26
+ margin-bottom: 5px
27
+
28
+ .news-post-teaser-content
29
+ flex-grow: 1
30
+ display: flex
31
+ flex-direction: column
32
+ font-size: 14px
33
+
34
+ .news-post-teaser-preview
35
+ flex: 1 1 auto
36
+ overflow: hidden
37
+ position: relative
7
38
 
8
- &.post-headline
9
- font-size: 200%
10
- line-height: 140%
11
- margin-bottom: 15px
39
+ &:after
40
+ content: ''
41
+ position: absolute
42
+ bottom: 0
43
+ left: 0
44
+ right: 0
45
+ height: 30px
46
+ background-image: -webkit-linear-gradient(top, transparent 0%, #fff 100%)
47
+ background-image: -o-linear-gradient(top, transparent 0%, #fff 100%)
48
+ background-image: linear-gradient(to bottom, transparent 0%, #fff 100%)
49
+ background-repeat: repeat-x
50
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#FFFFFFFF', GradientType=0)
12
51
 
13
- .descText
14
- font-size: 100%
15
- margin-top: 5px
16
- color: #899299
52
+ .news-post-teaser-author
53
+ flex-shrink: 0
54
+ color: $medium-grey
17
55
 
18
- #content .themenline
19
- margin-top: 30px
56
+ .news-post-teaser-content
57
+ height: 183px
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.3.3
4
+ version: 0.3.4
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: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -67,15 +67,16 @@ files:
67
67
  - _includes/header-de.html
68
68
  - _includes/header-en.html
69
69
  - _includes/help_search_and_categories.html
70
- - _includes/help_searchbar-de.html
71
- - _includes/help_searchbar-en.html
72
70
  - _includes/hero_image.html
71
+ - _includes/searchbar-de.html
72
+ - _includes/searchbar-en.html
73
73
  - _includes/sharing.html
74
74
  - _includes/subnavi-de.html
75
75
  - _includes/subnavi-en.html
76
76
  - _layouts/default.html
77
77
  - _layouts/error404.html
78
78
  - _layouts/help.html
79
+ - _layouts/news.html
79
80
  - _layouts/post.html
80
81
  - _layouts/redirect.html
81
82
  - _sass/about-us.sass