summaryrefslogtreecommitdiff
path: root/layouts/_partials/posts
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-08 14:41:19 +0800
committereltrac <hi@eltr.ac>2026-03-08 14:41:19 +0800
commitfe0bafba4a126fef9c169bfefa09201a6ea400ca (patch)
tree66b77deef5773a56f5f962ed3b65d8ac1330203c /layouts/_partials/posts
parent5ccd892f23ba9cfa7145fec7137a49eb2077a447 (diff)
parentc09ffa2e5b0db615f4a4614da7d4811616afdf4f (diff)
merge branch restructure
Diffstat (limited to 'layouts/_partials/posts')
-rw-r--r--layouts/_partials/posts/action-menu.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/layouts/_partials/posts/action-menu.html b/layouts/_partials/posts/action-menu.html
index 215dc96a..d3544c1f 100644
--- a/layouts/_partials/posts/action-menu.html
+++ b/layouts/_partials/posts/action-menu.html
@@ -1,4 +1,13 @@
{{ $webmentions := index .Site.Data.webmentions .RelPermalink }}
+
+<!--
+ some pages were moved, merge their webmention with old Data
+-->
+{{ $other_webmentions := index .Site.Data.webmentions (printf "/posts%s" .RelPermalink ) }}
+{{ if $other_webmentions }}
+ {{ $webmentions = $webmentions | union $other_webmentions }}
+{{ end }}
+
{{ $likes := slice }}
{{ $replies := slice }}
{{ $mentions := slice }}
@@ -16,7 +25,7 @@
{{ partial "posts/action-area" . }}
<details class="my-4 mb-5 no-mark">
- <summary class="cursor-pointer">
+ <summary class="cursor-pointer flex">
{{ partial "posts/webmention-summary" (dict
"likes" $likes
"page" .