summaryrefslogtreecommitdiff
path: root/layouts/_partials/posts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/posts')
-rw-r--r--layouts/_partials/posts/action-menu.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/_partials/posts/action-menu.html b/layouts/_partials/posts/action-menu.html
index 88bb8f8b..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 }}