summaryrefslogtreecommitdiff
path: root/layouts/_partials/posts
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 /layouts/_partials/posts
parent97b54420a48767cf63e6144586b885012cff59fe (diff)
fix(actions): replace unsupported jq feature
Diffstat (limited to 'layouts/_partials/posts')
-rw-r--r--layouts/_partials/posts/action-menu/webmention-section.html17
1 files changed, 17 insertions, 0 deletions
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"