From 3d0287f04fb31068b96c19dc0020160586304efd Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Mon, 16 Jan 2023 15:05:53 -0500 Subject: [PATCH] Add comment count in post (#659) * Add comment count in post * Restyle comment count --- static/style.css | 11 +++++++++++ templates/post.html | 1 + 2 files changed, 12 insertions(+) diff --git a/static/style.css b/static/style.css index 4981555..3ff48c4 100644 --- a/static/style.css +++ b/static/style.css @@ -849,6 +849,17 @@ a.search_subreddit:hover { font-weight: bold; } +#comment_count { + font-weight: 500; + opacity: 0.9; +} + +#comment_count > #sorted_by { + font-weight: normal; + opacity: 0.7; + margin-right: 7px; +} + #post_links { display: flex; list-style: none; diff --git a/templates/post.html b/templates/post.html index d69644b..c79a18d 100644 --- a/templates/post.html +++ b/templates/post.html @@ -44,6 +44,7 @@
+

{{post.comments.0}} {% if post.comments.0 == "1" %}comment{% else %}comments{% endif %} sorted by