diff options
| author | Eltrac <hi@guhub.cn> | 2025-10-13 09:17:57 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-10-13 09:17:57 +0800 |
| commit | 91fd13228da54baa8f6145efe8e81f7ce8e893d3 (patch) | |
| tree | 1c217f8cbdafa2121111e5f3cf1c2273f6c85533 /layouts/_partials/posts | |
| parent | ab28dbf17de72a0caff664a7437d8f6af86d198b (diff) | |
refactor: move comment section to a modular partial
Diffstat (limited to 'layouts/_partials/posts')
| -rw-r--r-- | layouts/_partials/posts/action-menu.html | 8 | ||||
| -rw-r--r-- | layouts/_partials/posts/action-menu/comment-section.html | 8 |
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> |
