update twig to 2.9

This commit is contained in:
fowr
2023-03-29 18:59:28 -03:00
parent 08c9929eb0
commit d2bb450b1a
44 changed files with 710 additions and 606 deletions

View File

@@ -1,4 +1,4 @@
{% filter remove_whitespace %}
{% apply spaceless %}
<!doctype html>
<html>
<head>
@@ -19,7 +19,7 @@
</header>
<div class="ban">
{% if news|count == 0 %}
{% if news|length == 0 %}
<p style="text-align:center" class="unimportant">(No news to show.)</p>
{% else %}
{% for entry in news %}
@@ -40,4 +40,4 @@
{% include 'footer.html' %}
</body>
</html>
{% endfilter %}
{% endapply %}