summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/news.j229
-rw-r--r--news/index.html.j228
2 files changed, 57 insertions, 0 deletions
diff --git a/common/news.j2 b/common/news.j2
new file mode 100644
index 0000000..15cfb17
--- /dev/null
+++ 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
new file mode 100644
index 0000000..cffcaf9
--- /dev/null
+++ 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 %}