summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2020-11-16 16:15:41 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2020-11-16 16:15:41 +0900
commit3cd24073ee6cb9d1d857ce8b1f2f7822d4a531f3 (patch)
tree662abb029b1a234895129ed311bfe3870362a90b
parent269af3fe3ddbbb7be5f27cf6544cacbaf774f93f (diff)
revert news change; prettify
-rw-r--r--template/index.html.j241
1 files changed, 26 insertions, 15 deletions
diff --git a/template/index.html.j2 b/template/index.html.j2
index fb0ac82..6bc85b2 100644
--- a/template/index.html.j2
+++ b/template/index.html.j2
@@ -2,18 +2,42 @@
{% block body_content %}
<!-- Jumbotron -->
<div>
- <div class="container text-center">
+ <div class="container">
<div class="row">
<div class="container text-center">
<h1>{{ _("The Internet of tomorrow needs GNUnet today") }}</h1>
</div>
</div>
- <div>
+ <div class="container text-center">
<img src="{{ url_static('images/gnunet-logo-dark-text.png') }}" alt="GNUnet" />
</div>
</div>
</div>
+
+<div class="container-fluid">
+ <div class="container">
+ <div class="row">
+ <div class="col-lg-2 homepageicon">
+ <span class="fa fa-bullhorn"></span>
+ </div>
+ <div class="col-lg-6">
+ <section>
+ <h2>{{ _("Latest news") }}</h2>
+ <p>
+ {% for item in newsdata[:3] %}
+ <a class="link" href="news/{{ item['page'] }}" title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a><br/>
+ {% endfor %}
+ <br/>
+ <a class="link" href="{{ url_localized('news/index.html')}}">{{ _("Older news entries") }}</a>
+ </p>
+ </section>
+ </div>
+ </div>
+ </div>
+</div>
+
+
<div class="container-fluid greybox">
<div class="container">
<div class="row">
@@ -253,19 +277,6 @@
</div>
</div>
- <div class="row mt-5">
- </div>
- <div class="container">
- <div class="col-8">
- <h2><a href="{{ url_localized('news/index.html')}}">{{ _("News") }}</a></h2>
- </div>
- {% for item in newsdata[:3] %}
- <div class="col-8">
- <a href="news/{{ item['page'] }}" title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a>
- </div>
- {% endfor %}
- </div>
-
</div>
<hr style="padding: 2em;"/>
<div class="container-fluid">