Use singular form of "comment" for posts with 1 comment

This commit is contained in:
arthomnix 2022-08-14 21:12:25 +01:00
parent 57d304161b
commit 251102183d
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@
{{ post.body|safe }}
</div>
<div class="post_footer">
<a href="{{ post.permalink }}" class="post_comments" title="{{ post.comments.1 }} comments">{{ post.comments.0 }} comments</a>
<a href="{{ post.permalink }}" class="post_comments" title="{{ post.comments.1 }} comments">{{ post.comments.0 }} {% if post.comments.1 == "1" %}comment{% else %}comments{% endif %}</a>
</div>
</div>
{%- endmacro %}