From 800da4c7e251040ed2e6f8533b8dc24b6b83eaef Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Sat, 19 Jul 2025 15:58:56 +0200 Subject: No comments SQL select count --- blog.node5.net/static/article.css | 2 +- blog.node5.net/templates/base.html | 4 ++-- src/blog_node5_net.py | 9 +++++++-- src/db_handler.py | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/blog.node5.net/static/article.css b/blog.node5.net/static/article.css index 8704d5f..00cbdbc 100644 --- a/blog.node5.net/static/article.css +++ b/blog.node5.net/static/article.css @@ -8,7 +8,7 @@ img { background: unset !important; } -pre { +pre:not(#comments) { overflow: auto; width: 100%; display: inline-block; diff --git a/blog.node5.net/templates/base.html b/blog.node5.net/templates/base.html index 13012ea..a872fb6 100644 --- a/blog.node5.net/templates/base.html +++ b/blog.node5.net/templates/base.html @@ -48,9 +48,9 @@ (Will await approval before becoming public)
- {% if comments and comments|length > 0 %}

+    {% if comments and comments|length > 0 %}
 {{ comments }}
-    
{% endif %} +
{% else %}*No comments*{% endif %}