From e044c13713c90d295da5eb292e879ec9ddfd249d Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Tue, 6 Jul 2021 19:31:21 +1000 Subject: Fixing the uncountable error by using twig count explicitly for frameset and categories themes --- templates/themes/categories/news.html | 2 +- templates/themes/frameset/news.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/themes/categories/news.html b/templates/themes/categories/news.html index dc6387c5..4ce65128 100644 --- a/templates/themes/categories/news.html +++ b/templates/themes/categories/news.html @@ -14,7 +14,7 @@
- {% if not news %} + {% if news|count == 0 %}

{% trans %}(No news to show.){% endtrans %}

{% else %} {% for entry in news %} diff --git a/templates/themes/frameset/news.html b/templates/themes/frameset/news.html index 0719079f..320c64d3 100644 --- a/templates/themes/frameset/news.html +++ b/templates/themes/frameset/news.html @@ -13,7 +13,7 @@
- {% if not news %} + {% if news|count == 0 %}

(No news to show.)

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