summaryrefslogtreecommitdiff
path: root/layouts/_partials
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-10-13 09:17:57 +0800
committerEltrac <hi@guhub.cn>2025-10-13 09:17:57 +0800
commit91fd13228da54baa8f6145efe8e81f7ce8e893d3 (patch)
tree1c217f8cbdafa2121111e5f3cf1c2273f6c85533 /layouts/_partials
parentab28dbf17de72a0caff664a7437d8f6af86d198b (diff)
refactor: move comment section to a modular partial
Diffstat (limited to 'layouts/_partials')
-rw-r--r--layouts/_partials/posts/action-menu.html8
-rw-r--r--layouts/_partials/posts/action-menu/comment-section.html8
2 files changed, 9 insertions, 7 deletions
diff --git a/layouts/_partials/posts/action-menu.html b/layouts/_partials/posts/action-menu.html
index fed2def8..ae19873a 100644
--- a/layouts/_partials/posts/action-menu.html
+++ b/layouts/_partials/posts/action-menu.html
@@ -8,11 +8,5 @@
{{ partial "posts/action-menu/info-links" . }}
</div>
<!-- Like Count Display -->
- <div id="organ-farm" class="flex flex-wrap gap-4 hidden animate-duration-200"></div>
- <!-- Comment Section -->
- <div class="overflow-hidden my-4">
- <div class="mt-4 hidden animate-duration-200" id="comments-section">
- {{ partial "posts/comment.html" . }}
- </div>
- </div>
+ {{ partial "posts/action-menu/comment-section" . }}
</div>
diff --git a/layouts/_partials/posts/action-menu/comment-section.html b/layouts/_partials/posts/action-menu/comment-section.html
new file mode 100644
index 00000000..be99487a
--- /dev/null
+++ b/layouts/_partials/posts/action-menu/comment-section.html
@@ -0,0 +1,8 @@
+<!-- Comment Count Display -->
+<div id="organ-farm" class="flex flex-wrap gap-4 hidden animate-duration-200"></div>
+<!-- Comment Section -->
+<div class="overflow-hidden my-4">
+ <div class="mt-4 hidden animate-duration-200" id="comments-section">
+ {{ partial "posts/comment.html" . }}
+ </div>
+</div>