diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-02-07 20:39:36 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-02-07 20:39:36 +0800 |
| commit | 7640a330780fda4306c1922f631a71b581caf6c6 (patch) | |
| tree | c6e3786024494684a3ae2d5037c299a2b21ea513 /layouts/_partials/posts/action-menu.html | |
| parent | e543ffe95311d0bffc88d9c4068239f021d5cb5d (diff) | |
feat(ui): collapse webmention replies and mentions
Diffstat (limited to 'layouts/_partials/posts/action-menu.html')
| -rw-r--r-- | layouts/_partials/posts/action-menu.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/layouts/_partials/posts/action-menu.html b/layouts/_partials/posts/action-menu.html index c6c2abfc..9358ce0d 100644 --- a/layouts/_partials/posts/action-menu.html +++ b/layouts/_partials/posts/action-menu.html @@ -15,9 +15,15 @@ {{ end }} <div id="action-menu" class="my-4 mb-5"> - {{ partial "posts/webmention-likes" (dict "likes" $likes "page" .) }} - {{ partial "posts/webmention-replies" $replies }} - {{ partial "posts/webmention-mentions" $mentions }} + {{ partial "posts/webmention-likes" (dict + "likes" $likes + "page" . + "othercount" (add (len $replies) (len $mentions)) + ) }} + <div id="webmention-collapse" class="hidden"> + {{ partial "posts/webmention-replies" $replies }} + {{ partial "posts/webmention-mentions" $mentions }} + </div> <!-- kept for legacy pages --> {{ partial "posts/comment" . }} |
