jekyll-theme-pirati 3.4.0 → 3.5.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: 8f1c6fb99ddaf062b1abdf7d2c2df232f858969bd8cba71822f2f8e14d0067a4
4
- data.tar.gz: 30a083b9e3184461c7cffedf275e662dcca29f182b1c2908da11052aa742695f
3
+ metadata.gz: 91be0dfa5a3df33ea4f16d0a7bf41a8feda4001b7e5ccc67027d00f35e4fbdff
4
+ data.tar.gz: 91eb74d6a8aac8d98bd30391e3bc261ea9656df5582b60f25e7f3734448890bd
5
5
  SHA512:
6
- metadata.gz: 110789c94729177293e630d9626a81c738e4482e915ce22db60569b264c605718b0fae03ee37911a82e6617407e8e502a626d68c3b12e62e962cc2a18e602b54
7
- data.tar.gz: 4440f3b3869d7e6f5f73f1d9f9dde84c0e3a62b3f4d6606a40c77a9fb99f8abdbc5281a381cee5f47b8e950744f192dda9c1379913efe46480eacf34ecb022c3
6
+ metadata.gz: 37e3ac3f25b5e5cee8ecab49f06f9934b29fc447c8cea89f4f59aac07c1f307cc954afa2fa95971a6a216fb820899a551a4d6d0d3d547977d3c711e86c6edb05
7
+ data.tar.gz: 5264881dd5a785dc614d33033d144085cef8e53e560255cc0804ef2e9879a70ee60323527192d8d07cb8484e11cd683f5307fd4f42e83728a1647e0643b49cfb
@@ -4,5 +4,12 @@ baseUrl: /komunalni-volby/
4
4
  campaigns:
5
5
  - title: Program na radnici
6
6
  category: praha2018
7
+ candidates:
8
+ - prvni.leader
9
+ - mistni.predseda
10
+ - jakub.pirat
11
+ - aktivni.priznivec
7
12
  - title: Senát
8
13
  category: senat
14
+ candidates:
15
+ - jakub.pirat
@@ -14,19 +14,20 @@ submenu: 'submenu/komunalni-volby.html'
14
14
  <h3 class="o-section__heading o-section__heading--small">Kandidátní listina</h3>
15
15
  </div>
16
16
  <div class="c-program-candidates">
17
- {% assign team = site.people | where_exp: "item", "item.categories contains page.category" | sort:"cityCandidatePosition" %}
18
- {% assign leader_candidate = team | first %}
19
- {% assign other_candidates = team | slice:1,team.size %}
20
-
21
- {% include candidate-badge.html candidate=leader_candidate leader=true position="1" %}
17
+ {% assign electionSettings = site.data.elections.campaigns | where: "category", page.category | first %}
18
+ {% assign leaderCandidateUid = electionSettings.candidates | first %}
19
+ {% assign leaderCandidate = site.people | where: "uid", leaderCandidateUid | first %}
20
+ {% include candidate-badge.html candidate=leaderCandidate leader=true rank=1 %}
22
21
 
23
22
  <div class="c-program-candidates__others">
24
- {% for candidate in other_candidates %}
25
- {% assign loopindex = forloop.index | modulo: 3 %}
26
- {% if loopindex == 1 %}<div class="c-program-candidates__row">{% endif %}
27
- {% assign position = forloop.index | plus: 1 %}
28
- {% include candidate-badge.html candidate=candidate leader=false position=position %}
29
- {% if loopindex == 0 or forloop.last %}</div>{% endif %}
23
+ {% assign otherCandidateUids = electionSettings.candidates | slice: 1, electionSettings.candidates.size %}
24
+ {% for candidateUid in otherCandidateUids %}
25
+ {% assign candidate = site.people | where: "uid", candidateUid | first %}
26
+ {% assign candidateRank = forloop.index | plus: 1 %}
27
+ {% assign loopindex = forloop.index | modulo: 3 %}
28
+ {% if loopindex == 1 %}<div class="c-program-candidates__row">{% endif %}
29
+ {% include candidate-badge.html candidate=candidate leader=false rank=candidateRank %}
30
+ {% if loopindex == 0 or forloop.last %}</div>{% endif %}
30
31
  {% endfor %}
31
32
  </div>
32
33
  </div>
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: 3.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná