Based on #157 and #158, revert back to existence checks and length rather than default empty array initialization for ease of reading

This commit is contained in:
Benjamin Southall 2019-08-10 12:01:07 +10:00
parent 878b9aa420
commit a5650df053
8 changed files with 10 additions and 10 deletions

View file

@ -36,7 +36,7 @@
<br>
<div class="ban" id="global3">
<h2>Latest News</h2>
{% if recent_news|default([])|length == 0 %}
{% if not recent_news %}
<p style="text-align:center" class="unimportant">(No news to show.)</p>
{% else %}
{% for entry in recent_news %}