From e9ab66b1e4f893a9313c7dfc40832323239d66af Mon Sep 17 00:00:00 2001 From: "Kerby Martino (aider)" Date: Fri, 2 May 2025 03:21:04 +0800 Subject: [PATCH] feat: Use mobile_comment.liquid on mobile view in post.liquid --- _layouts/post.liquid | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/_layouts/post.liquid b/_layouts/post.liquid index b77cfcd..d365288 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -52,13 +52,21 @@ layout: default

Comments

- {% assign top_level_comments = site.comments | where: "post", page.slug | where_exp: "item", "item.parent == nil" | sort: "date" %} - {% if top_level_comments.size > 0 %} - {% for comment in top_level_comments %} - {% include comment.liquid comment=comment %} - {% endfor %} - {% else %} -

No comments yet.

- {% endif %} + + + + +
+ {% include mobile_comment.liquid %} +