From 03d07d6e2d416309350dbbffaef2b5298a88d6cf Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 28 Nov 2021 12:28:15 +0000 Subject: [PATCH] location: Remove blog posts from front page The BlogPosts UI module no longer exists Signed-off-by: Michael Tremer --- src/templates/location/index.html | 22 ---------------------- src/web/location.py | 8 ++------ 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/src/templates/location/index.html b/src/templates/location/index.html index b1ed0cc7..26d97ba7 100644 --- a/src/templates/location/index.html +++ b/src/templates/location/index.html @@ -160,26 +160,4 @@ - - {% if posts %} -
-
-
-
-

{{ _("Related News from the IPFire Blog") }}

- -
-
- {% module BlogPosts(posts) %} -
-
- - - {{ _("Read More") }} - -
-
-
-
- {% end %} {% end block %} diff --git a/src/web/location.py b/src/web/location.py index 8e0fb8bf..30b632c9 100644 --- a/src/web/location.py +++ b/src/web/location.py @@ -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, ) -- 2.39.2