Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
{% block main %}
<div class="card">
<div class="card-body">
- {% module BlogPosts(posts) %}
+ {% if posts %}
+ {% module BlogPosts(posts) %}
+ {% else %}
+ <p class="text-center text-muted my-5">
+ {{ _("There are no posts tagged with '%s'") % tag }}
+ </p>
+ {% end %}
</div>
</div>
{% end block %}
if not posts:
raise tornado.web.HTTPError(404, "There are no posts with tag: %s" % tag)
- self.render("blog/tag.html", posts=posts, tag=tag)
+ self.render("blog/tag.html", posts=list(posts), tag=tag)
class YearHandler(base.BaseHandler):