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 +4 -4
- data/_data/elections.yml +7 -0
- data/_layouts/komunalni-volby.html +12 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91be0dfa5a3df33ea4f16d0a7bf41a8feda4001b7e5ccc67027d00f35e4fbdff
|
4
|
+
data.tar.gz: 91eb74d6a8aac8d98bd30391e3bc261ea9656df5582b60f25e7f3734448890bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37e3ac3f25b5e5cee8ecab49f06f9934b29fc447c8cea89f4f59aac07c1f307cc954afa2fa95971a6a216fb820899a551a4d6d0d3d547977d3c711e86c6edb05
|
7
|
+
data.tar.gz: 5264881dd5a785dc614d33033d144085cef8e53e560255cc0804ef2e9879a70ee60323527192d8d07cb8484e11cd683f5307fd4f42e83728a1647e0643b49cfb
|
data/_data/elections.yml
CHANGED
@@ -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
|
18
|
-
{% assign
|
19
|
-
{% assign
|
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
|
-
{%
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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>
|