diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-04 22:21:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-04 22:21:46 +0200 |
commit | feb258df10acfa7ed1e356c0cd33c4ab3db3c7a4 (patch) | |
tree | 86ece922bc1d346ad91cc44d38190eb31bff2d71 /news/index.html.j2 | |
parent | ce71f187681fb3d0100fb5a98043133f05bc7be1 (diff) | |
download | www-feb258df10acfa7ed1e356c0cd33c4ab3db3c7a4.tar.gz www-feb258df10acfa7ed1e356c0cd33c4ab3db3c7a4.tar.bz2 www-feb258df10acfa7ed1e356c0cd33c4ab3db3c7a4.zip |
try to fix 'read more' issue
Diffstat (limited to 'news/index.html.j2')
-rw-r--r-- | news/index.html.j2 | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/news/index.html.j2 b/news/index.html.j2 index cffcaf9..207fa80 100644 --- a/news/index.html.j2 +++ b/news/index.html.j2 @@ -1,6 +1,5 @@ {% extends "common/base.j2" %} {% block body_content %} - {% import 'inc/news.macro.j2' as news %} <div class="container-fluid"> <div class="container"> <article> @@ -9,8 +8,12 @@ <h1>{{ _("News") }}<a name="news"></a></h1> <section> <p> - News posts published by Taler about changes related to - GNUnet, releases, and events – <a href="{{ url_localized('rss.xml')}}">subscribe to our RSS feed</a> + {% trans %} + News posts about changes related to + GNU Taler such as releases and events + {% endtrans %} + – + <a href="{{ url_localized('rss.xml') }}">{{ _("subscribe to our RSS feed") }}</a> </p> </section> </div> @@ -18,7 +21,18 @@ <div class="row"> {% for item in newsdata %} <div class="col-lg-4"> - {{ news.newspreview(item) }} + <section class="item-preview"> + <header> + <h3>{{ item['title']|e }}</h3> + <p class="item-date"> + {{ item['date'] }} + </p> + </header> + <p class="item-abstract"> + {{ item['abstract'] }} <br/> + [<a href="{{ item['page'] }}" title="{{ item['date']}}">{{ _("read more") }}</a>] + </p> + </section> </div> {% endfor %} </div> |