-
Notifications
You must be signed in to change notification settings - Fork 1
/
news.html
76 lines (74 loc) · 1.92 KB
/
news.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
layout: basic
---
{% assign rootResource = site.rootResource | rdf_get %}
<div class="content-header">
<h1>
{% if site.language == 'en' %}
News
{% else %}
Neuigkeiten
{% endif %}
</h1>
<!--p>
</p>
<form class="filter" action="#">
<div>
<label for="form-select1" class="hideme">Kategorie</label> <select class="form-control" id="form-select1">
<option value="">
Kategorie wählen
</option>
<option value="a">
Option A
</option>
<option value="b">
Option B
</option>
<option value="c">
Option C
</option>
<option value="d">
Option D
</option>
<option value="e">
Option E
</option>
</select> <label for="form-select2" class="hideme">Jahr</label> <select class="form-control" id="form-select2">
<option value="">
Jahr wählen
</option>
<option value="a">
Option A
</option>
<option value="b">
Option B
</option>
<option value="c">
Option C
</option>
<option value="d">
Option D
</option>
<option value="e">
Option E
</option>
</select> <button type="submit">Anzeige filtern</button>
</div>
</form-->
</div>
<div class="news-list">
<ul>
{% assign all_news = rootResource | rdf_property: "<https://dataweek.de/#news>", nil, true %}
{% for news in all_news reversed %}
<li class="news-item">
<h2>
{{ news | rdf_property: "dct:title", site.language }}<br>
<time datetime="{{ news | rdf_property: "dct:date" }}">{{ news | rdf_property: "dct:date" | localize: "%Y-%m-%d" }}</time>
</h2>
<p>
{{ news | rdf_property: "dct:description", site.language | markdownify }}
</p>
</li>
{% endfor %}
</ul>
</div>