From 2d44023a90331a4f2bdeb2d6f7193dee0f9643d8 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Mon, 5 Jan 2026 22:47:40 +0800 Subject: fix(actions): replace unsupported jq feature --- .github/workflows/fetch-webmentions.yml | 2 +- .../_partials/posts/action-menu/webmention-section.html | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fetch-webmentions.yml b/.github/workflows/fetch-webmentions.yml index b585be74..d78096dc 100644 --- a/.github/workflows/fetch-webmentions.yml +++ b/.github/workflows/fetch-webmentions.yml @@ -36,7 +36,7 @@ jobs: source: ."wm-source", published: .published, received: ."wm-received", - content: .content // null + content: (if has("content") then .content else null end) }) }) | add diff --git a/layouts/_partials/posts/action-menu/webmention-section.html b/layouts/_partials/posts/action-menu/webmention-section.html index f4af155b..55588444 100644 --- a/layouts/_partials/posts/action-menu/webmention-section.html +++ b/layouts/_partials/posts/action-menu/webmention-section.html @@ -4,6 +4,23 @@

{{ T "webmention.fetching" }}

+
+ {{ $permalink := printf "https://www.geedea.pro%s" .RelPermalink }} + {{ $webmentions := index .Site.Data.webmentions $permalink }} + {{ $permalink }} + {{ with $webmentions }} + {{ range . }} + {{ if eq .type "in-reply-to" }} +
+
+ Profile Picture +
+
+ {{ end }} + {{ end }} + {{ end}} +