From c09ffa2e5b0db615f4a4614da7d4811616afdf4f Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 8 Mar 2026 12:49:40 +0800 Subject: fix: merge old webmentions after URLs change --- layouts/_partials/posts/action-menu.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'layouts/_partials/posts') 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 }} + + +{{ $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 }} -- cgit v1.2.3