From 251102183df33f46e396f72872e55d2f1ce0b565 Mon Sep 17 00:00:00 2001 From: arthomnix Date: Sun, 14 Aug 2022 21:12:25 +0100 Subject: [PATCH] Use singular form of "comment" for posts with 1 comment --- templates/utils.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/utils.html b/templates/utils.html index 07e1ce8..fa8451d 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -141,7 +141,7 @@ {{ post.body|safe }}
- {{ post.comments.0 }} comments + {{ post.comments.0 }} {% if post.comments.1 == "1" %}comment{% else %}comments{% endif %}
{%- endmacro %}