summaryrefslogtreecommitdiff
path: root/layouts/_partials/posts/action-menu.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/posts/action-menu.html')
-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" .