diff options
Diffstat (limited to 'template/news/oldnews-2018.html.j2')
-rw-r--r-- | template/news/oldnews-2018.html.j2 | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/template/news/oldnews-2018.html.j2 b/template/news/oldnews-2018.html.j2 new file mode 100644 index 00000000..b5833a31 --- /dev/null +++ b/template/news/oldnews-2018.html.j2 | |||
@@ -0,0 +1,50 @@ | |||
1 | {% extends "common/base.j2" %} | ||
2 | {% block body_content %} | ||
3 | <!-- Simply link to or copy this file as-is (no modifications required) | ||
4 | news/oldnews-::year::. This will generate a new news archive page. | ||
5 | Note that you may still have to modify the currently displayed | ||
6 | year ranges in the index.html.j2. | ||
7 | --> | ||
8 | <div class="container-fluid"> | ||
9 | <div class="container"> | ||
10 | <article> | ||
11 | <div class="row"> | ||
12 | <div class="container text-center"> | ||
13 | <h1>{{ _("News") + " " + self._TemplateReference__context.name[13:17] }}<a name="news"></a></h1> | ||
14 | <section> | ||
15 | <p> | ||
16 | {% trans %} | ||
17 | News posts about changes related to | ||
18 | GNUnet such as releases and events | ||
19 | {% endtrans %} | ||
20 | – | ||
21 | <a href="{{ url_localized('rss.xml') }}">{{ _("subscribe to our RSS feed") }}</a> | ||
22 | </p> | ||
23 | </section> | ||
24 | </div> | ||
25 | </div> | ||
26 | <div class="row"> | ||
27 | <b>{{ self._TemplateReference__context.name[13:17] }}</b> | ||
28 | <ul class="timeline"> | ||
29 | {% for item in newsdata|selectattr('date.year', 'eq', self._TemplateReference__context.name[13:17]|int) %} | ||
30 | <li> | ||
31 | <section class="item-preview"> | ||
32 | <header> | ||
33 | <h3>{{ item['title']|e }}</h3> | ||
34 | <p class="item-date"> | ||
35 | {{ item['date'] }} | ||
36 | </p> | ||
37 | </header> | ||
38 | <p class="item-abstract"> | ||
39 | {{ item['abstract'] }} <br/> | ||
40 | [<a href="{{ item['page'] }}" title="{{ item['date']}}">{{ _("read more") }}</a>] | ||
41 | </p> | ||
42 | </section> | ||
43 | </li> | ||
44 | {% endfor %} | ||
45 | </ul> | ||
46 | </div> | ||
47 | </article> | ||
48 | </div> | ||
49 | </div> | ||
50 | {% endblock body_content %} | ||