summaryrefslogtreecommitdiff
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.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>