]> git.ipfire.org Git - ipfire.org.git/commitdiff
location: Remove blog posts from front page
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Nov 2021 12:28:15 +0000 (12:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Nov 2021 12:28:15 +0000 (12:28 +0000)
The BlogPosts UI module no longer exists

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/location/index.html
src/web/location.py

index b1ed0cc70c284f7799132ad83491835a5974cede..26d97ba7a650490990593263c26ab733526c2036 100644 (file)
                        </div>
                </div>
        </section>
-
-       {% if posts %}
-               <section>
-                       <div class="container">
-                               <div class="row justify-content-center">
-                                       <div class="col-12 col-lg-10">
-                                               <h3>{{ _("Related News from the IPFire Blog") }}</h3>
-
-                                               <div class="card my-3">
-                                                       <div class="card-body">
-                                                               {% module BlogPosts(posts) %}
-                                                       </div>
-                                               </div>
-
-                                               <a class="btn btn-primary btn-lg btn-block" href="https://www.ipfire.org/blog/tags/location">
-                                                       {{ _("Read More") }}
-                                               </a>
-                                       </div>
-                               </div>
-                       </div>
-               </section>
-       {% end %}
 {% end block %}
index 8e0fb8bfcf1b5d5ce484e19e0408b8d188edab94..30b632c97477de54fd203efa9251618fa86d6433 100644 (file)
@@ -1,7 +1,5 @@
+#!/usr/bin/python3
 
-#!/usr/bin/python
-
-import logging
 import tornado.web
 
 from .. import util
@@ -11,10 +9,8 @@ from . import base
 
 class IndexHandler(auth.CacheMixin, base.BaseHandler):
        def get(self):
-               posts = self.backend.blog.get_by_tag("location", limit=1)
-
                self.render("location/index.html",
-                       address=self.current_address, posts=posts,
+                       address=self.current_address,
                )