From 6509781c77760badd3b6f6a33f1780a3c9de5ce8 Mon Sep 17 00:00:00 2001 From: Tom Teichler <tom.teichler@teckids.org> Date: Sun, 15 Mar 2020 14:37:41 +0100 Subject: [PATCH] Add article list to home page --- templates/base.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/base.html b/templates/base.html index ae9ffcb..1a693a9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -102,6 +102,17 @@ <!-- Main Content --> {% block content %}{% endblock %} + <div class="col-xs-10 col-xs-offset-1 col-sm-4 col-sm-offset-1"> + <h3>News</h3> + {% for article in ARTICLES %} + <h4>{{ article.title }}</h4> + {{ article.date }} · {{ article.author }} + <p> + {{ article.summary }} + </p + {% endfor %} + </div> + <!-- Sponsoren Footer --> <footer class="page-footer" id="sponsoren-footer"> <div class="container"> -- GitLab