From 8dfdc5e33514443e463b1accc1053dc986def4d4 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Sat, 10 Aug 2019 12:01:07 +1000 Subject: Based on #157 and #158, revert back to existence checks and length rather than default empty array initialization for ease of reading --- templates/themes/basic/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/themes/basic/index.html') diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html index a444be71..94bc79d0 100644 --- a/templates/themes/basic/index.html +++ b/templates/themes/basic/index.html @@ -24,7 +24,7 @@ mascot
- {% if news|default([])|length == 0 %} + {% if not news %}

(No news to show.)

{% else %} {% for entry in news %} -- cgit v1.3