From 5df68c4ead3822911bee82e58bba4d5b78a30226 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sat, 16 Sep 2017 20:11:16 +0200 Subject: [PATCH] Comments: Only show if there are actually comments No negative text "no comments" --- src/templates/nodes/custom/comment/list_embed.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/nodes/custom/comment/list_embed.pug b/src/templates/nodes/custom/comment/list_embed.pug index cb328689..a88a7768 100644 --- a/src/templates/nodes/custom/comment/list_embed.pug +++ b/src/templates/nodes/custom/comment/list_embed.pug @@ -66,10 +66,10 @@ | {% endif %} - | {% if show_comments %} + | {% if show_comments and (nr_of_comments > 0) %} section#comments-list-header #comments-list-title - | {% if nr_of_comments == 0 %}No{% else %}{{ nr_of_comments }}{% endif %} comment{{ nr_of_comments|pluralize }} + | {{ nr_of_comments }} comment{{ nr_of_comments|pluralize }} #comments-list-items | {% for comment in comments['_items'] %} | {{ macros.render_comment(comment, False) }}