aboutsummaryrefslogtreecommitdiff
path: root/news/index.html.j2
diff options
context:
space:
mode:
Diffstat (limited to 'news/index.html.j2')
-rw-r--r--news/index.html.j217
1 files changed, 15 insertions, 2 deletions
diff --git a/news/index.html.j2 b/news/index.html.j2
index ae8f5e3b..6db6600e 100644
--- a/news/index.html.j2
+++ b/news/index.html.j2
@@ -19,9 +19,11 @@
19 </div> 19 </div>
20 </div> 20 </div>
21 <div class="row"> 21 <div class="row">
22 {% for year, yitem in newsdata|selectattr('date.year', 'gt', 2019)|groupby('date.year') %}
23 <b>{{ year }}</b>
22 <ul class="timeline"> 24 <ul class="timeline">
23 {% for item in newsdata %} 25 {% for item in yitem %}
24 <li> 26 <li>
25 <section class="item-preview"> 27 <section class="item-preview">
26 <header> 28 <header>
27 <h3>{{ item['title']|e }}</h3> 29 <h3>{{ item['title']|e }}</h3>
@@ -37,7 +39,18 @@
37 </li> 39 </li>
38 {% endfor %} 40 {% endfor %}
39 </ul> 41 </ul>
42 {% endfor %}
40 </div> 43 </div>
44 <h2>
45 {% trans %}
46 News archives:
47 {% endtrans %}
48 </h2>
49 <ul>
50 {% for year, yitem in newsdata|selectattr('date.year', 'lt', 2020)|groupby('date.year')|reverse %}
51 <li><a href="{{ 'oldnews-' + year|string + '.html' }}">{{ year }} ({{yitem|length}})</a></li>
52 {% endfor %}
53 </ul>
41 </article> 54 </article>
42 </div> 55 </div>
43 </div> 56 </div>