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) |
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 @@ </div> </div> <div class="row"> - {% for year, yitem in newsdata|selectattr('date.year', 'gt', 2019)|groupby('date.year')|reverse %} + {% for year, yitem in newsdata|selectattr('date.year', 'gt', 2021)|groupby('date.year')|reverse %} <b>{{ year }}</b> <ul class="timeline"> {% for item in yitem %} @@ -47,7 +47,7 @@ {% endtrans %} </h2> <ul> - {% for year, yitem in newsdata|selectattr('date.year', 'lt', 2020)|groupby('date.year')|reverse %} + {% for year, yitem in newsdata|selectattr('date.year', 'lt', 2022)|groupby('date.year')|reverse %} <li><a href="{{ 'oldnews-' + year|string + '.html' }}">{{ year }} ({{yitem|length}})</a></li> {% endfor %} </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 @@ +{% extends "common/base.j2" %} +{% from "common/old-news.j2.inc" import oldnews with context %} +{% block body_content %} +{{ oldnews(2019) }} +{% 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 @@ +{% extends "common/base.j2" %} +{% from "common/old-news.j2.inc" import oldnews with context %} +{% block body_content %} +{{ oldnews(2019) }} +{% endblock body_content %} |