From: Zachary Vance Date: Fri, 12 Jul 2024 01:17:40 +0000 (-0400) Subject: Hide comments section if there are none X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=6b82756e8964d69157a5a921da2c09e74df8de58;p=blog.git Hide comments section if there are none --- 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}}