From c446cb28ae1a40899acfaa92abdca47ec87573a0 Mon Sep 17 00:00:00 2001 From: Vincent Tam Date: Mon, 20 May 2019 13:46:29 +0200 Subject: =?UTF-8?q?Template=20pour=20Staticman=20simplifi=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/staticman-comments.html | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/staticman-comments.html b/layouts/partials/staticman-comments.html index 8715b8f..ba6cc77 100644 --- a/layouts/partials/staticman-comments.html +++ b/layouts/partials/staticman-comments.html @@ -18,26 +18,22 @@ {{ range $comments }} {{ if not .replyThread }} {{ $.Scratch.Add "hasComments" 1 }} - {{ $.Scratch.Set "hasReplies" 0 }} {{ $.Scratch.Set "threadID" ._id }} -
+ {{ range $comments }} {{ if eq .replyThread ($.Scratch.Get "threadID") }} - {{ $.Scratch.Add "hasReplies" 1 }} -