From 6b82756e8964d69157a5a921da2c09e74df8de58 Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Thu, 11 Jul 2024 21:17:40 -0400 Subject: [PATCH] Hide comments section if there are none --- templates/post.mustache.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/post.mustache.html b/templates/post.mustache.html index 2286684..2521633 100644 --- a/templates/post.mustache.html +++ b/templates/post.mustache.html @@ -1,6 +1,10 @@
-

{{title}}

+

+{{^main_display}}{{/main_display}} +{{title}} +{{^main_display}}{{/main_display}} +

{{#main_display}} +{{#comments}}

Responses to {{title}}

{{& comments }}
+{{/comments}} {{/main_display}}
-- 2.47.3