summaryrefslogtreecommitdiff
path: root/template/news/index.html.j2
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-06 16:01:32 +0200
committerFlorian Dold <florian@dold.me>2021-05-06 16:01:44 +0200
commit9a6e7c57484e16bdd3f4aa917e6489048fb242d0 (patch)
treee87fd94803e83e5269add3de88b1b06fa97b9ef1 /template/news/index.html.j2
parentc32cf6705b2519b670c22bb0d6378b3dbca9f508 (diff)
downloadwww-9a6e7c57484e16bdd3f4aa917e6489048fb242d0.tar.gz
www-9a6e7c57484e16bdd3f4aa917e6489048fb242d0.tar.bz2
www-9a6e7c57484e16bdd3f4aa917e6489048fb242d0.zip
simplify structure
Diffstat (limited to 'template/news/index.html.j2')
-rw-r--r--template/news/index.html.j242
1 files changed, 42 insertions, 0 deletions
diff --git a/template/news/index.html.j2 b/template/news/index.html.j2
new file mode 100644
index 00000000..207fa801
--- /dev/null
+++ b/template/news/index.html.j2
@@ -0,0 +1,42 @@
+{% extends "common/base.j2" %}
+{% block body_content %}
+ <div class="container-fluid">
+ <div class="container">
+ <article>
+ <div class="row">
+ <div class="container text-center">
+ <h1>{{ _("News") }}<a name="news"></a></h1>
+ <section>
+ <p>
+ {% trans %}
+ News posts about changes related to
+ GNU Taler such as releases and events
+ {% endtrans %}
+ &#8211;
+ <a href="{{ url_localized('rss.xml') }}">{{ _("subscribe to our RSS feed") }}</a>
+ </p>
+ </section>
+ </div>
+ </div>
+ <div class="row">
+ {% for item in newsdata %}
+ <div class="col-lg-4">
+ <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>
+ </article>
+ </div>
+ </div>
+{% endblock body_content %}