summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-05 22:47:40 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-05 22:49:14 +0800
commit2d44023a90331a4f2bdeb2d6f7193dee0f9643d8 (patch)
tree2c69f114b4640f3dd432352d9dc300f6b6cffe3a
parent97b54420a48767cf63e6144586b885012cff59fe (diff)
fix(actions): replace unsupported jq feature
-rw-r--r--.github/workflows/fetch-webmentions.yml2
-rw-r--r--layouts/_partials/posts/action-menu/webmention-section.html17
2 files changed, 18 insertions, 1 deletions
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
@@ -5,6 +5,23 @@
<p class="no-webmention">{{ T "webmention.fetching" }}</p>
</div>
<div>
+ {{ $permalink := printf "https://www.geedea.pro%s" .RelPermalink }}
+ {{ $webmentions := index .Site.Data.webmentions $permalink }}
+ {{ $permalink }}
+ {{ with $webmentions }}
+ {{ range . }}
+ {{ if eq .type "in-reply-to" }}
+ <div class="">
+ <div class="flex">
+ <img src="{{ .author.photo }}" alt="Profile Picture"
+ class="h-10 w-10 rd-full" />
+ </div>
+ </div>
+ {{ end }}
+ {{ end }}
+ {{ end}}
+ </div>
+ <div>
<form
id="webmention-form"
action="https://webmention.io/www.geedea.pro/webmention"