about summary refs log tree commit diff
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-02-27 18:06:00 +0100
committeruser <user@node5.net>2024-02-27 18:06:00 +0100
commit293d37cfb58b0aca2a4b77b9975d8034a0a1c684 (patch)
treedca052c00c250f1a58e24ac799d71cf2aba1cf20
parent703977492637f4da247cbf38727ad061e903f49e (diff)
hide comments header when there's no comments
-rw-r--r--blog.node5.net/templates/base.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/blog.node5.net/templates/base.html b/blog.node5.net/templates/base.html
index a12ffb9..3210946 100644
--- a/blog.node5.net/templates/base.html
+++ b/blog.node5.net/templates/base.html
@@ -45,7 +45,7 @@
         <input type="submit" value="Post comment" />
     </form>
     <br>
-
+    {% if comments|length > 0 %}
     <h3>
         ID <span class="dark-grey">|</span>
         Username <span class="dark-grey">|</span>
@@ -70,6 +70,7 @@
     </ul>
 
     {% endfor %}
+    {% endif %}
 </div>
 <div id="footer">
     {% block footer %}