taler-www

Main taler.net website
Log | Files | Refs | Submodules | README | LICENSE

commit 7c708d3aac4409bb56ac25510624b72a5d325f45
parent 7de18b3b5d42c3e8f3a75522521f6089023f5110
Author: ng0 <ng0@taler.net>
Date:   Mon,  9 Dec 2019 20:07:50 +0000

add news template.

Diffstat:
Acommon/news.j2 | 29+++++++++++++++++++++++++++++
Anews/index.html.j2 | 28++++++++++++++++++++++++++++
2 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/common/news.j2 b/common/news.j2 @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html lang="{{ lang }}"> + <head> + <meta charset="UTF-8"/> + <title>{{ _("GNUnet") }}</title> + <meta name="description" content="{{ _('Taxable Anonymous Libre Electronic Reserves') }}" /> + {% include "common/header.j2.inc" %} + {% block head_content %}{% endblock %} + </head> + <body id="mybody"> + {% include "common/navigation.j2.inc" %} + <div id="body_content" class="bg-near-white"> + <a href="#" id="jump-top" role="button"> + <i class="fas fa-chevron-up"></i> + </a> + <div class="container-fluid"> + <div class="container text-center"> + <h1>News</h1> + </div> + </div> + <div class="container"> + <article id="newspost-content"> + {% block body_content %}{% endblock %} + </article> + </div> + </div> + {% include "common/footer.j2.inc" %} + </body> +</html> diff --git a/news/index.html.j2 b/news/index.html.j2 @@ -0,0 +1,28 @@ +{% extends "common/base.j2" %} +{% block body_content %} + {% import 'inc/news.macro.j2' as news %} + <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> + News posts published by Taler about changes related to + GNUnet, releases, and events &#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"> + {{ news.newspreview(item) }} + </div> + {% endfor %} + </div> + </article> + </div> + </div> +{% endblock body_content %}