diff --git a/templates/base.html b/templates/base.html index d7f8cff81d5373d9fa9a00b35eb0980233ca3f48..24051bbec24281820e4923f33fab99280f2bb837 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">