diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-04 22:30:04 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-04 22:30:04 +0200 |
commit | 4fa88822cca7de3fe0d54478aaa5af8d75f2ea18 (patch) | |
tree | 2bbf9845abd9e631a713fadefc8ba5b8e844f8fe | |
parent | 2a0a29dedf64d6d330237cd4741b89b13270eeaa (diff) | |
download | www-4fa88822cca7de3fe0d54478aaa5af8d75f2ea18.tar.gz www-4fa88822cca7de3fe0d54478aaa5af8d75f2ea18.zip |
remove macro
-rw-r--r-- | news/index.html.j2 | 22 | ||||
-rw-r--r-- | template/index.html.j2 | 9 |
2 files changed, 22 insertions, 9 deletions
diff --git a/news/index.html.j2 b/news/index.html.j2 index 9d9f9ff0..f121b910 100644 --- a/news/index.html.j2 +++ b/news/index.html.j2 | |||
@@ -1,6 +1,5 @@ | |||
1 | {% extends "common/base.j2" %} | 1 | {% extends "common/base.j2" %} |
2 | {% block body_content %} | 2 | {% block body_content %} |
3 | {% import 'inc/news.macro.j2' as news %} | ||
4 | <div class="container-fluid"> | 3 | <div class="container-fluid"> |
5 | <div class="container"> | 4 | <div class="container"> |
6 | <article> | 5 | <article> |
@@ -9,8 +8,12 @@ | |||
9 | <h1>{{ _("News") }}<a name="news"></a></h1> | 8 | <h1>{{ _("News") }}<a name="news"></a></h1> |
10 | <section> | 9 | <section> |
11 | <p> | 10 | <p> |
12 | News posts published by GNUnet about changes related to | 11 | {% trans %} |
13 | GNUnet, releases, and events – <a href="{{ url_localized('rss.xml')}}">subscribe to our RSS feed</a> | 12 | News posts about changes related to |
13 | GNU Taler such as releases and events | ||
14 | {% endtrans %} | ||
15 | – | ||
16 | <a href="{{ url_localized('rss.xml') }}">{{ _("subscribe to our RSS feed") }}</a> | ||
14 | </p> | 17 | </p> |
15 | </section> | 18 | </section> |
16 | </div> | 19 | </div> |
@@ -19,7 +22,18 @@ | |||
19 | <ul class="timeline"> | 22 | <ul class="timeline"> |
20 | {% for item in newsdata %} | 23 | {% for item in newsdata %} |
21 | <li> | 24 | <li> |
22 | {{ news.newspreview(item) }} | 25 | <section class="item-preview"> |
26 | <header> | ||
27 | <h3>{{ item['title']|e }}</h3> | ||
28 | <p class="item-date"> | ||
29 | {{ item['date'] }} | ||
30 | </p> | ||
31 | </header> | ||
32 | <p class="item-abstract"> | ||
33 | {{ item['abstract'] }} <br/> | ||
34 | [<a href="{{ item['page'] }}" title="{{ item['date']}}">{{ _("read more") }}</a>] | ||
35 | </p> | ||
36 | </section> | ||
23 | </li> | 37 | </li> |
24 | {% endfor %} | 38 | {% endfor %} |
25 | </ul> | 39 | </ul> |
diff --git a/template/index.html.j2 b/template/index.html.j2 index acc3c358..fa9e68f8 100644 --- a/template/index.html.j2 +++ b/template/index.html.j2 | |||
@@ -1,6 +1,5 @@ | |||
1 | {% extends "common/base.j2" %} | 1 | {% extends "common/base.j2" %} |
2 | {% block body_content %} | 2 | {% block body_content %} |
3 | {% import 'inc/news.macro.j2' as news %} | ||
4 | <!-- Jumbotron --> | 3 | <!-- Jumbotron --> |
5 | <div> | 4 | <div> |
6 | <div class="container text-center"> | 5 | <div class="container text-center"> |
@@ -32,7 +31,7 @@ | |||
32 | your items (data) to use it against you and sell it to | 31 | your items (data) to use it against you and sell it to |
33 | others - while you can't even notice the thievery nor | 32 | others - while you can't even notice the thievery nor |
34 | accuse and hold the scroungers accountable. | 33 | accuse and hold the scroungers accountable. |
35 | <!-- | 34 | <!-- |
36 | Proposal from Fabian Gerlach: The conventional Internet is currently like a system of roads | 35 | Proposal from Fabian Gerlach: The conventional Internet is currently like a system of roads |
37 | with deep potholes and surveillance cameras all over the place. | 36 | with deep potholes and surveillance cameras all over the place. |
38 | Even if you still can use the roads (e.g. send emails, or browse | 37 | Even if you still can use the roads (e.g. send emails, or browse |
@@ -132,7 +131,7 @@ | |||
132 | content distribution</a> in a technically robust manner - as | 131 | content distribution</a> in a technically robust manner - as |
133 | opposed to ad-hoc designs in place today. | 132 | opposed to ad-hoc designs in place today. |
134 | <!-- | 133 | <!-- |
135 | Proposal from fabian gerlach: GNUnet is built | 134 | Proposal from fabian gerlach: GNUnet is built |
136 | <a href="https://www.w3.org/2014/strint/papers/65.pdf">"privacy by design"</a> and | 135 | <a href="https://www.w3.org/2014/strint/papers/65.pdf">"privacy by design"</a> and |
137 | "distributed by design". This improves addressing, routing, naming and | 136 | "distributed by design". This improves addressing, routing, naming and |
138 | content distribution in a technically robust manner. | 137 | content distribution in a technically robust manner. |
@@ -208,7 +207,7 @@ | |||
208 | <p> | 207 | <p> |
209 | {% trans %} | 208 | {% trans %} |
210 | <!-- | 209 | <!-- |
211 | replaced with Proposal from Fabian Gerlach: | 210 | replaced with Proposal from Fabian Gerlach: |
212 | It seems as if every other distributed or P2P project | 211 | It seems as if every other distributed or P2P project |
213 | develops its own library stack, covering transports, stream | 212 | develops its own library stack, covering transports, stream |
214 | muxing, discovery and others. This divides effort and | 213 | muxing, discovery and others. This divides effort and |
@@ -286,7 +285,7 @@ | |||
286 | {% for item in newsdata[:4] %} | 285 | {% for item in newsdata[:4] %} |
287 | <div class="row"> | 286 | <div class="row"> |
288 | <div class="col-lg-12"> | 287 | <div class="col-lg-12"> |
289 | {{ news.newspreview(item, prefix="news/") }} | 288 | <a href="news/{{ item['page'] }}" title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a> |
290 | </div> | 289 | </div> |
291 | </div> | 290 | </div> |
292 | {% endfor %} | 291 | {% endfor %} |