From d47713e9eeb87273020993f1c0db8e7ed5a6364d Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Sun, 15 Mar 2020 21:17:43 +0100
Subject: [PATCH] Add links to news

---
 templates/base.html | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index d7f8cff..24051bb 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -102,17 +102,19 @@
     <!-- 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
-            <a href="{{ article.url }}">More info…</a>
-        {% endfor %}
-    </div>
+    {% block news %}
+        <div class="col-xs-10 col-xs-offset-1 col-sm-4 col-sm-offset-1">
+            <h3>News</h3>
+            {% for article in articles %}
+                <h4><a href="{{ article.url }}">{{ article.title }}</a></h4>
+                {{ article.date }} · <a href="{{ article.author.url }}">{{ article.author }}</a>
+                <p>
+                 {{ article.summary }}
+                </p
+                <a href="{{ article.url }}">More info…</a>
+            {% endfor %}
+        </div>
+    {% endblock %}
 
     <!-- Sponsoren Footer -->
     <footer class="page-footer" id="sponsoren-footer">
-- 
GitLab