gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-www] 06/10: add news template.


From: gnunet
Subject: [taler-www] 06/10: add news template.
Date: Wed, 11 Dec 2019 12:34:07 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository www.

commit 7c708d3aac4409bb56ac25510624b72a5d325f45
Author: ng0 <address@hidden>
AuthorDate: Mon Dec 9 20:07:50 2019 +0000

    add news template.
---
 common/news.j2     | 29 +++++++++++++++++++++++++++++
 news/index.html.j2 | 28 ++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

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 %}

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]