summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-31 20:14:07 +0100
committerChristian Grothoff <christian@grothoff.org>2020-10-31 20:14:07 +0100
commit4cbac6b896598e28361da89677a46137b5518701 (patch)
tree871a47323596589ccdb7003f90c7ae4bbed943c7 /template
parent06e8dc517d55690a672d4f32452b34297adb5b0a (diff)
downloadwww-4cbac6b896598e28361da89677a46137b5518701.tar.gz
www-4cbac6b896598e28361da89677a46137b5518701.tar.bz2
www-4cbac6b896598e28361da89677a46137b5518701.zip
make news visible in a way RMS likes
Diffstat (limited to 'template')
-rw-r--r--template/index.html.j223
1 files changed, 15 insertions, 8 deletions
diff --git a/template/index.html.j2 b/template/index.html.j2
index 2598536c..1c55d09d 100644
--- a/template/index.html.j2
+++ b/template/index.html.j2
@@ -8,14 +8,6 @@
</div>
</div>
- <div class="row justify-content-center text-center">
- <div class="col-8">
- {% for item in newsdata[:1] %}
- <a href="news/{{ item['page'] }}" title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a>
- {% endfor %}
- </div>
- </div>
-
<div class="row mt-5">
</div>
@@ -55,6 +47,21 @@
<img class="img-fluid" src="{{ url_static('images/stock1s.jpg') }}" style="border-radius: 1cm;" />
</div>
</div>
+
+ <div class="row mt-5">
+ </div>
+ <div class="row">
+ <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>
+
{% endblock body_content %}