/
predstaveni.html
53 lines (51 loc) · 1.85 KB
/
predstaveni.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: Představení
class: predstaveni
layout: main
---
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1 col-xs-12">
<h2>Aktuální představení</h2>
{% assign this_year = site.data.predstaveni | first %}
{% assign current_gigs = this_year.predstaveni | where: "aktualni", "ano" %}
{% if current_gigs == empty %}
<p>Nejsou.</p>
{% else %}
<ul class="nice">
{% for gig in current_gigs %}
<li>
{{ gig.kdy }}
<span class="text-muted"> / </span>
<em>{{ gig.co }}</em>
<span class="text-muted"> / </span>
{% if gig.url %}
<a href="{{ gig.url }}">{{ gig.kde }}</a>
{% else %}
{{ gig.kde }}
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% assign total = 0 %}
{% for year in site.data.predstaveni %}
{% assign subtotal = year.predstaveni | size %}
{% assign total = total | plus:subtotal %}
<h2>{{ year.rok }} <small>{{ subtotal }} představení</small></h2>
<ul class="nice">
{% for gig in year.predstaveni %}
<li>
{{ gig.kdy }}
<span class="text-muted"> / </span>
<em>{{ gig.co }}</em>
<span class="text-muted"> / </span>
{{ gig.kde }}
</li>
{% endfor %}
</ul>
{% endfor %}
<p>Celkem {{ total }} představení. Uf.</p>
</div>
</div>
</div>