The BlogPosts UI module no longer exists
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
</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 %}
+#!/usr/bin/python3
-#!/usr/bin/python
-
-import logging
import tornado.web
from .. import util
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,
)