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 | 5d1cc82beeb4fff39d577155e89576bb41da003a (patch) | |
| tree | d4601e84763803b305aa4bd6ad7fdd7d61910708 /layouts | |
| parent | 78326befa551cb018b534aa1f38a9870e18c3943 (diff) | |
refactor: move comment section to a modular partial
Former-commit-id: 91fd13228da54baa8f6145efe8e81f7ce8e893d3
Diffstat (limited to 'layouts')
| -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> |
