jekyll-theme-pirati 4.0.0 → 4.1.0

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
  SHA256:
3
- metadata.gz: 3584397aa4f39ae5df4a5d96cced2aa45ea6c763d26ea2207ab2939e964161e4
4
- data.tar.gz: 91f66a05e102bfa8f9467727e123993c321d7d8ab2df081ebf84e524260143b2
3
+ metadata.gz: a76681b55f0517b6487380c2a8ace87ab35a62cabfe18a1d7ba5b9e767744a6f
4
+ data.tar.gz: ecb4ed49364f3466b6801748db3e614d7e9f33911d5bae06bfe83b8ea698a6a6
5
5
  SHA512:
6
- metadata.gz: 50b25ed8abf85c3d60da4a074e1f8c4753912b9349dca24a32eece17399e5e6eb1adb230ddfeceb0bd653678f0982f285f669264d7571dd4e6fdedb94287a856
7
- data.tar.gz: ffc9476d29baacde2639062a80e5c0400dbff4a2c630fce9688b2a1e0fc954257147bcefb0ea5d2b932e2c0887b05c29cc8816cfaac3b609e619ca87106b05bd
6
+ metadata.gz: 026c997a91a7a13a98d1efec9862aba3dfea22b20976cc8a9061997e0747197714f159868ffb01344281c9dbe0a6afda35bdab8a030aac4aa74870130de0af26
7
+ data.tar.gz: 5dd3d87282e7afe3a59a9dd9428532fb215be3545c4b01a0dab1efa60da2a973c6abea53544e5ba11350f6b461363ed32770460cd49449f4b4013ade6e07ccdf
@@ -0,0 +1,10 @@
1
+ # Campaigns are grouped, this usually reperesents situation when multiple
2
+ # election campaings are held at the same time (which saves $$$ for the country).
3
+
4
+ - groupUid: volby-2018 # identifier of the group, to be used in program point
5
+ title: Volby 2018 # title of the campaign group
6
+ campaigns:
7
+ - title: Program na radnici # individual campaigns within the group
8
+ categoryUid: praha2018
9
+ - title: Senát
10
+ categoryUid: senat
@@ -2,16 +2,16 @@
2
2
  <a class="c-program-candidate-badge__body" href="{{ include.candidate.url | relative_url }}">
3
3
  <div class="c-program-candidate-badge__avatar">
4
4
  <span class="c-program-candidate-badge__rank"><span>{{ include.rank }}.</span></span>
5
- {% capture img %}{% if include.candidate.img %}{% asset '{{ include.candidate.img }}' magick:resize='240x240^' magick:gravity='center' magick:crop='240x240+0+0' @path %}{% else %}{{ 'assets/img/people/unknown-pirate.svg' | relative_url }}{% endif %}{% endcapture %}
5
+ {% capture img %}{% if include.candidatePage.img %}{% asset '{{ include.candidatePage.img }}' magick:resize='240x240^' magick:gravity='center' magick:crop='240x240+0+0' @path %}{% else %}{{ 'assets/img/people/unknown-pirate.svg' | relative_url }}{% endif %}{% endcapture %}
6
6
  <img src="{{ img }}" alt="{{ include.candidate.fullname }}" class="c-program-candidate-badge__avatar-image">
7
7
  </div>
8
8
  <div class="c-program-candidate-badge__description">
9
- <h4 class="c-program-candidate-badge__name t-h2"><span class="c-headline-anchor">{{ include.candidate.fullname }}</span></h4>
9
+ <h4 class="c-program-candidate-badge__name t-h2"><span class="c-headline-anchor">{{ include.candidatePage.fullname }}</span></h4>
10
10
  <strong class="c-program-candidate-badge__profession">
11
- {% if include.age %} {{ include.age }} let, {% endif %}
12
- {{ include.profession }}{% if include.party %}, {{ include.party }} {% endif %}
11
+ {% if include.candidate.age %} {{ include.candidate.age }} let, {% endif %}
12
+ {{ include.candidate.profession }}{% if include.candidate.party %}, {{ include.candidate.party }} {% endif %}
13
13
  </strong>
14
- <p class="c-program-candidate-badge__bio">{{ include.description }}</p>
14
+ <p class="c-program-candidate-badge__bio">{{ include.candidate.description }}</p>
15
15
  </div>
16
16
  </a>
17
17
  </div>
@@ -1,25 +1,23 @@
1
- {% for item in site.pages %}
2
- {% if item.programMenu %}
3
- {% assign menu = item.programMenu %}
4
- {% endif %}
5
- {% endfor %}
1
+ {% if page.campaignGroupUid %}
2
+ {% assign campaignGroup = site.data.campaigns | where: "groupUid", page.campaignGroupUid | first %}
3
+ {% endif %}
6
4
 
7
- {% if menu %}
5
+ {% if campaignGroup %}
8
6
  <div class="o-section-block--spaceBot show-for-large">
9
7
  <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
10
8
  <li class="c-widget-accordion-item is-active" data-accordion-item="">
11
9
  <a href="#toc" class="c-widget-accordion-link">
12
- <span class="c-widget-accordion__title">{{ site.data.elections.headerTitle }}</span>
10
+ <span class="c-widget-accordion__title">{{ campaignGroup.title }}</span>
13
11
  <span class="c-widget-accordion__icon c-widget-accordion__icon" aria-hidden="true">
14
12
  <i class="fa fa-list"></i>
15
13
  </span>
16
14
  </a>
17
15
  <div class="c-widget-accordion-content" data-tab-content="" id="toc">
18
- {% for campaign in menu %}
16
+ {% for campaign in campaignGroup.campaigns %}
19
17
  <h4>{{ campaign.title }}</h4>
20
18
  <ul class="c-widget-accordion-list">
21
19
  <ul>
22
- {% assign programSections = site.program | where_exp: "item", "item.category contains campaign.category" | sort:"order" %}
20
+ {% assign programSections = site.program | where: "campaignCategoryUid", campaign.categoryUid | sort:"order" %}
23
21
  {% for programSection in programSections %}
24
22
  <li><a class="c-emphasized-anchor {% if page.uid == programSection.uid %}active{% endif %}" href="{{ programSection.url | relative_url }}">{{ programSection.title }}</a></li>
25
23
  {% endfor %}
@@ -0,0 +1,3 @@
1
+ {% capture width %}{% if include.width %}{{ include.width }}{% else %}740{% endif %}{% endcapture %}
2
+ {% capture height %}{% if include.height %}{{ include.height }}{% else %}416{% endif %}{% endcapture %}
3
+ <iframe width="{{ width }}" height="{{ height }}" src="https://www.youtube.com/embed/{{ include.id }}" frameborder="0" allowfullscreen></iframe>
@@ -2,12 +2,16 @@
2
2
  layout: page
3
3
  ---
4
4
  {% assign candidates = site.kandidatka | where: "uid", page.candidateList | first %}
5
- {% assign programCategories = site.program | where_exp:"item", "item.categories contains page.programCategory" | sort:"order" %}
5
+ {% assign programCategories = site.program | where: "campaignCategoryUid", page.campaignCategoryUid | sort:"order" %}
6
6
 
7
7
  {% if candidates.number %}
8
- <div class="row">
8
+ <div class="row u-stacked">
9
9
  <div class="columns">
10
- <h1 class="o-section__heading o-section__heading--small">Volte číslo {{candidates.number}}!</h1>
10
+ <div class="c-tile c-tile--inverted c-tile--fill">
11
+ <div class="c-tile__body u-center">
12
+ <h1 class="u-0margin">Volte číslo {{ candidates.number }}!</h1>
13
+ </div>
14
+ </div>
11
15
  {% comment %}
12
16
  Tohle bych tělo ještě tučněji, nějak s tím víc graficky pracovat.
13
17
  {% endcomment %}
@@ -15,7 +19,7 @@ layout: page
15
19
  </div>
16
20
  {% endif %}
17
21
 
18
- <div class="row">
22
+ <div class="row u-stacked">
19
23
  <div class="columns">{{ content }}</div>
20
24
  </div>
21
25
 
@@ -28,39 +32,41 @@ layout: page
28
32
  <div class="c-program-candidates">
29
33
 
30
34
  {% assign leaderCandidate = site.people | where: "uid", candidates.leader.uid | first %}
31
- {% include candidate-badge.html candidate=leaderCandidate leader=true rank=1 age=candidates.leader.age profession=candidates.leader.profession description=candidates.leader.description party=candidates.leader.party %}
35
+ {% include candidate-badge.html candidate=candidates.leader candidatePage=leaderCandidate leader=true rank=1 %}
32
36
 
33
- <div class="c-program-candidates__others">
34
- {% for candidate in candidates.head %}
35
- {% assign candidatePage = site.people | where: "uid", candidate.uid | first %}
36
- {% assign candidateRank = forloop.index | plus: 1 %}
37
- {% assign loopindex = forloop.index | modulo: 3 %}
38
- {% if loopindex == 1 %}<div class="c-program-candidates__row">{% endif %}
39
- {% include candidate-badge.html candidate=candidatePage leader=false rank=candidateRank age=candidate.age profession=candidate.profession description=candidate.description party=candate.party %}
40
- {% if loopindex == 0 or forloop.last %}</div>{% endif %}
41
- {% endfor %}
42
- </div>
37
+ {% if candidates.head.size %}
38
+ <div class="c-program-candidates__others">
39
+ {% for candidate in candidates.head %}
40
+ {% assign candidatePage = site.people | where: "uid", candidate.uid | first %}
41
+ {% assign candidateRank = forloop.index | plus: 1 %}
42
+ {% assign loopindex = forloop.index | modulo: 3 %}
43
+ {% if loopindex == 1 %}<div class="c-program-candidates__row">{% endif %}
44
+ {% include candidate-badge.html candidate=candidate candidatePage=candidatePage leader=false rank=candidateRank %}
45
+ {% if loopindex == 0 or forloop.last %}</div>{% endif %}
46
+ {% endfor %}
47
+ </div>
48
+ {% endif %}
43
49
 
44
- <div class="c-program-candidates__others">
45
- {% for candidate in candidates.tail %}
46
- <hr>
47
- {% assign candidateRank = forloop.index | plus: 1 | plus: candidates.head.size %}
48
- <span style="font-weight: bold">
49
- {{ candidateRank }}.
50
- {{ candidate.name }},
51
- </span>
52
- {% if candidate.age %}
53
- {{ candidate.age }} let,
54
- {% endif %}
55
- {% if candidate.profession %}
56
- {{ candidate.profession }},
57
- {% endif %}
58
- {% if candidate.party %}
59
- {{ candidate.party }},
60
- {% endif %}
61
- {% endfor %}
62
- <hr>
63
- </div>
50
+ {% if candidates.tail.size > 0 %}
51
+ <div class="c-program-candidates__others">
52
+ {% for candidate in candidates.tail %}
53
+ <p>
54
+ {% assign candidateRank = forloop.index | plus: 1 | plus: candidates.head.size %}
55
+ <strong>{{ candidateRank }}. {{ candidate.name }}{% if candidate.age or candidate.profession or candidate.party %}, {% endif %}</strong>
56
+
57
+ {% if candidate.age %}
58
+ {{ candidate.age }} let{% if candidate.profession or candidate.party %}, {% endif %}
59
+ {% endif %}
60
+ {% if candidate.profession %}
61
+ {{ candidate.profession }}{% if candidate.party %}, {% endif %}
62
+ {% endif %}
63
+ {% if candidate.party %}
64
+ {{ candidate.party }}
65
+ {% endif %}
66
+ </p>
67
+ {% endfor %}
68
+ </div>
69
+ {% endif %}
64
70
 
65
71
  </div>
66
72
 
@@ -75,8 +81,8 @@ layout: page
75
81
  <div class="c-program-items">
76
82
  {% for category in programCategories %}
77
83
  <div class="c-program-items__item">
78
- <div class="c-program-items__item-wrap">
79
- <div class="c-program-items__item-inner">
84
+ <div class="c-program-items__item-wrap c-tile">
85
+ <div class="c-program-items__item-inner c-tile__body">
80
86
  <a href="{{ category.url | relative_url }}">
81
87
  <h3 class="c-program-items__item-title t-h2 c-headline-anchor">{{ category.title }}</h3>
82
88
  <p>{{ category.perex }}</p>
@@ -44,14 +44,7 @@ $program-item-ns: '';
44
44
  border: 3px $primary-color solid;
45
45
  }
46
46
 
47
-
48
- .#{$program-item-ns}c-program-items__item + .#{$program-item-ns}c-program-items__item {
49
- margin-top: 1.5rem;
50
- }
51
-
52
47
  .#{$program-item-ns}c-program-items__item-inner {
53
- padding: 1.25rem;
54
-
55
48
  a:not(.button) {
56
49
  color: $black;
57
50
  // color: $white;
@@ -59,6 +52,10 @@ $program-item-ns: '';
59
52
  }
60
53
  }
61
54
 
55
+ .#{$program-item-ns}c-program-items__item + .#{$program-item-ns}c-program-items__item {
56
+ margin-top: 1.5rem;
57
+ }
58
+
62
59
  .#{$program-item-ns}c-program-candidates {
63
60
  display: flex;
64
61
  flex-direction: row;
@@ -0,0 +1,20 @@
1
+ .c-tile {
2
+ border: 3px $primary-color solid;
3
+
4
+ &.c-tile--fill {
5
+ background: $secondary-color;
6
+ }
7
+
8
+ &.c-tile--inverted.c-tile--fill {
9
+ color: $secondary-color;
10
+ background: $primary-color;
11
+ }
12
+ }
13
+
14
+ .c-tile__body {
15
+ padding: 1.25em;
16
+ }
17
+
18
+ .c-tile + .c-tile {
19
+ margin-top: 1.5rem;
20
+ }
@@ -29,6 +29,7 @@
29
29
  @import 'components/hp-banner';
30
30
  @import 'components/card';
31
31
  @import 'components/tag';
32
+ @import 'components/tile';
32
33
  @import 'components/widget-share-box';
33
34
  @import 'components/widget-simple-text';
34
35
  @import 'components/pagination';
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-pirati
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-25 00:00:00.000000000 Z
12
+ date: 2018-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -62,6 +62,7 @@ extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
64
  - README.md
65
+ - _data/campaigns.yml
65
66
  - _data/menu.yml
66
67
  - _includes/accordeon/accordeon-column.html
67
68
  - _includes/accordeon/accordeon.html
@@ -105,6 +106,7 @@ files:
105
106
  - _includes/right-bar/rbar_profiles.html
106
107
  - _includes/social.html
107
108
  - _includes/submenu.html
109
+ - _includes/youtube.html
108
110
  - _layouts/blank.html
109
111
  - _layouts/compress.html
110
112
  - _layouts/contacts.html
@@ -145,6 +147,7 @@ files:
145
147
  - _sass/components/program.scss
146
148
  - _sass/components/simple-accordion.scss
147
149
  - _sass/components/tag.scss
150
+ - _sass/components/tile.scss
148
151
  - _sass/components/top-bar.scss
149
152
  - _sass/components/top-sub-nav.scss
150
153
  - _sass/components/typography.scss