diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-11-29 17:59:39 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-11-29 17:59:39 +0900 |
commit | bb53c22b82fe5b434e605ac28cef2ba502b7d6d5 (patch) | |
tree | c912f5e29847a940e8bf5e5ff9a75fa5cb038325 | |
parent | 8a97f821b6f0bd86b65c1084b1ceceadce888435 (diff) | |
download | www-bb53c22b82fe5b434e605ac28cef2ba502b7d6d5.tar.gz www-bb53c22b82fe5b434e605ac28cef2ba502b7d6d5.zip |
Update oldnews
-rw-r--r-- | template/news/index.html.j2 | 4 | ||||
-rw-r--r-- | template/news/oldnews-2020.html.j2 | 5 | ||||
-rw-r--r-- | template/news/oldnews-2021.html.j2 | 5 |
3 files changed, 12 insertions, 2 deletions
diff --git a/template/news/index.html.j2 b/template/news/index.html.j2 index 004d46e7..c359d837 100644 --- a/template/news/index.html.j2 +++ b/template/news/index.html.j2 | |||
@@ -19,7 +19,7 @@ | |||
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')|reverse %} | 22 | {% for year, yitem in newsdata|selectattr('date.year', 'gt', 2021)|groupby('date.year')|reverse %} |
23 | <b>{{ year }}</b> | 23 | <b>{{ year }}</b> |
24 | <ul class="timeline"> | 24 | <ul class="timeline"> |
25 | {% for item in yitem %} | 25 | {% for item in yitem %} |
@@ -47,7 +47,7 @@ | |||
47 | {% endtrans %} | 47 | {% endtrans %} |
48 | </h2> | 48 | </h2> |
49 | <ul> | 49 | <ul> |
50 | {% for year, yitem in newsdata|selectattr('date.year', 'lt', 2020)|groupby('date.year')|reverse %} | 50 | {% for year, yitem in newsdata|selectattr('date.year', 'lt', 2022)|groupby('date.year')|reverse %} |
51 | <li><a href="{{ 'oldnews-' + year|string + '.html' }}">{{ year }} ({{yitem|length}})</a></li> | 51 | <li><a href="{{ 'oldnews-' + year|string + '.html' }}">{{ year }} ({{yitem|length}})</a></li> |
52 | {% endfor %} | 52 | {% endfor %} |
53 | </ul> | 53 | </ul> |
diff --git a/template/news/oldnews-2020.html.j2 b/template/news/oldnews-2020.html.j2 new file mode 100644 index 00000000..23691b6c --- /dev/null +++ b/template/news/oldnews-2020.html.j2 | |||
@@ -0,0 +1,5 @@ | |||
1 | {% extends "common/base.j2" %} | ||
2 | {% from "common/old-news.j2.inc" import oldnews with context %} | ||
3 | {% block body_content %} | ||
4 | {{ oldnews(2019) }} | ||
5 | {% endblock body_content %} | ||
diff --git a/template/news/oldnews-2021.html.j2 b/template/news/oldnews-2021.html.j2 new file mode 100644 index 00000000..23691b6c --- /dev/null +++ b/template/news/oldnews-2021.html.j2 | |||
@@ -0,0 +1,5 @@ | |||
1 | {% extends "common/base.j2" %} | ||
2 | {% from "common/old-news.j2.inc" import oldnews with context %} | ||
3 | {% block body_content %} | ||
4 | {{ oldnews(2019) }} | ||
5 | {% endblock body_content %} | ||