From 1a1ff2e60093bd14d194fc57132346be8259ee7f Mon Sep 17 00:00:00 2001 From: arthomnix <35371030+arthomnix@users.noreply.github.com> Date: Tue, 1 Nov 2022 01:36:24 +0000 Subject: [PATCH] Use singular form of "comment" for posts with 1 comment (#567) * Use singular form of "comment" for posts with 1 comment * Fix incorrect text on comment count tooltip Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com> --- templates/utils.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/utils.html b/templates/utils.html index 07e1ce8..7864200 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 %}