From 99ec3b34540c6f990e5e38df53489a9ea4f0fa85 Mon Sep 17 00:00:00 2001 From: Kerby Martino Date: Fri, 2 May 2025 14:09:46 +0800 Subject: [PATCH] feat: Add dynamic comment rendering for mobile view --- _includes/mobile_comment_top.liquid | 49 +++++++++++++++++------------ 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/_includes/mobile_comment_top.liquid b/_includes/mobile_comment_top.liquid index 6e47e3c..e6f7f61 100644 --- a/_includes/mobile_comment_top.liquid +++ b/_includes/mobile_comment_top.liquid @@ -1,23 +1,32 @@ -
-
-

Haha, this totally happened to me last year. We had a phantom chair thief at work and it became an ongoing office joke for months! -

-
-
- - 100 - - - REPLY - - - 10 - +

Comments

+ +{% assign top_comments = site.comments | where: "parent", nil | sort: "date" %} + +
+
+ {% for comment in top_comments %} +
+

{{ comment.content }} +

+
+
+ + {{ comment.upvotes }} + + + REPLY + + + {{ comment.replies }} + +
+ + {{ comment.author }} + {{ comment.date | date: "%d %b %Y" }} + +
- - commenter1 - 02 Oct 2023 - -
+ {% endfor %}
+