# HG changeset patch # User Goffi # Date 1522044833 -7200 # Node ID c70f405f9b86b8548e947890b37aedf0c9e8b077 # Parent c3f50951f2cc405338fca9d7d6a53f190a0f7b77 blog (articles): show a message when no article is found diff -r c3f50951f2cc -r c70f405f9b86 default/blog/articles.html --- a/default/blog/articles.html Mon Mar 26 08:13:52 2018 +0200 +++ b/default/blog/articles.html Mon Mar 26 08:13:53 2018 +0200 @@ -16,9 +16,13 @@ {%- endblock title -%} {% block body %} -
- {{ blog.show_items(items, expanded=single) }} -
+{% if items %} +
+ {{ blog.show_items(items, expanded=single) }} +
+{% else %} +

{% trans %}No articles found in this blog!{% endtrans %}

+{% endif %} {{ navigation.prev_next(_("newer articles"), _("older articles")) }} {% endblock body %}