summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-07 18:44:20 +0200
committerFlorian Dold <florian@dold.me>2021-05-07 18:44:20 +0200
commit7ace59bcaeea87191601a6b513f738a0f4d9b7cb (patch)
tree5587d7ebfa3e7e37790269f181a3f70ad7dd0211 /template
parent9157e98992a39a6a2260022d29716d6c46393f32 (diff)
downloadwww-7ace59bcaeea87191601a6b513f738a0f4d9b7cb.tar.gz
www-7ace59bcaeea87191601a6b513f738a0f4d9b7cb.tar.bz2
www-7ace59bcaeea87191601a6b513f738a0f4d9b7cb.zip
news timeline
Diffstat (limited to 'template')
-rw-r--r--template/news/index.html.j219
1 files changed, 12 insertions, 7 deletions
diff --git a/template/news/index.html.j2 b/template/news/index.html.j2
index a678021b..eb9edd6c 100644
--- a/template/news/index.html.j2
+++ b/template/news/index.html.j2
@@ -10,7 +10,7 @@
<p>
{% trans %}
News posts about changes related to
- GNU Taler such as releases and events
+ GNUnet such as releases and events
{% endtrans %}
&#8211;
<a href="{{ url_localized('rss.xml') }}">{{ _("subscribe to our RSS feed") }}</a>
@@ -18,10 +18,13 @@
</section>
</div>
</div>
- <div class="row">
- {% for item in newsdata %}
- <div class="col-lg-4">
- <section class="item-preview">
+ <div>
+ {% for year, yitem in newsdata|groupby('date.year')|reverse %}
+ <p><b>{{ year }}</b></p>
+ <ul class="timeline">
+ {% for item in yitem %}
+ <li>
+ <section class="item-preview">
<header>
<h3>{{ item['title']|e }}</h3>
<p class="item-date">
@@ -29,11 +32,13 @@
</p>
</header>
<p class="item-abstract">
- {{ get_abstract(item['page'], 1000) }} <br/>
+ {{ get_abstract(item['page'], 500) }} <br/>
[<a href="{{ url_localized(item['page']) }}" title="{{ item['date']}}">{{ _("read more") }}</a>]
</p>
</section>
- </div>
+ </li>
+ {% endfor %}
+ </ul>
{% endfor %}
</div>
</article>