-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtracks.html
57 lines (53 loc) · 1.92 KB
/
tracks.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
54
55
56
57
---
layout: basic
---
{% assign rootResource = site.rootResource | rdf_get %}
{% include strings.html %}
{% include sections/header_events.html %}
{% capture subEventQuery %}
SELECT DISTINCT ?event (MIN(?dates) as ?date)
WHERE {
?resourceUri schema:subEvent ?event .
?event dct:date ?dates ;
dw:show true .
}
GROUP BY ?event
ORDER BY ?date
{% endcapture %}
{% assign subEvents = rootResource | sparql_query: subEventQuery %}
<p>
{% if site.language == 'en' %}
The program is currently under construction and is constantly being expanded. All tracks, Monday to Friday, will be available shortly.
{% else %}
Das Programm befindet sich im Aufbau und wird stetig ergänzt. In Kürze werden alle Tracks, Montag bis Freitag, zu sehen sein.
{% endif %}
</p>
<div class="card-list">
<ul>
{% for row in subEvents %}
{% assign slogan = row.event | rdf_property: "schema:slogan", site.language %}
{% assign abstract = row.event | rdf_property: "schema:abstract", site.language %}
{% assign dates = row.event | rdf_property: "dct:date", nil, true %}
<li>
<div class="card">
<h2>
<a href="{{ row.event.render_path | relativize_url }}">
<span class="highlighted2">{{ row.event | rdf_property: "dw:slug" }}</span><br>
<span class="xl hideunderline">{{ row.event | rdf_property: "rdfs:label", site.language }}</span>
</a>
</h2>
<p class="dates">
{% for weekday in dates %}
<time>
<strong class="highlighted x1">{{ weekday | localize: "%a" }}</strong><br/>
<strong>{{ weekday }}</strong>
</time>
{% endfor %}
</p>
{% if slogan %}<p><em>{{ slogan }}</em></p>{% endif %}
{% if abstract %}<p class="justify"><small>{{ abstract }}</small></p>{% endif %}
</div>
</li>
{% endfor %}
</ul>
</div>