aboutsummaryrefslogtreecommitdiff
path: root/template/news/index.html.j2
diff options
context:
space:
mode:
Diffstat (limited to 'template/news/index.html.j2')
-rw-r--r--template/news/index.html.j257
1 files changed, 57 insertions, 0 deletions
diff --git a/template/news/index.html.j2 b/template/news/index.html.j2
new file mode 100644
index 00000000..abd20092
--- /dev/null
+++ b/template/news/index.html.j2
@@ -0,0 +1,57 @@
1{% extends "common/base.j2" %}
2{% block body_content %}
3 <div class="container-fluid">
4 <div class="container">
5 <article>
6 <div class="row">
7 <div class="container text-center">
8 <h1>{{ _("News") }}<a name="news"></a></h1>
9 <section>
10 <p>
11 {% trans %}
12 News posts about changes related to
13 GNUnet such as releases and events
14 {% endtrans %}
15 &#8211;
16 <a href="{{ url_localized('rss.xml') }}">{{ _("subscribe to our RSS feed") }}</a>
17 </p>
18 </section>
19 </div>
20 </div>
21 <div class="row">
22 {% for year, yitem in newsdata|selectattr('date.year', 'gt', 2019)|groupby('date.year')|reverse %}
23 <b>{{ year }}</b>
24 <ul class="timeline">
25 {% for item in yitem %}
26 <li>
27 <section class="item-preview">
28 <header>
29 <h3>{{ item['title']|e }}</h3>
30 <p class="item-date">
31 {{ item['date'] }}
32 </p>
33 </header>
34 <p class="item-abstract">
35 {{ get_abstract(item['page'], 500) }} <br/>
36 [<a href="{{ url_localized(item['page']) }}" title="{{ item['date']}}">{{ _("read more") }}</a>]
37 </p>
38 </section>
39 </li>
40 {% endfor %}
41 </ul>
42 {% endfor %}
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>
54 </article>
55 </div>
56 </div>
57{% endblock body_content %}