diff options
| -rw-r--r-- | .github/workflows/fetch-webmentions.yml | 2 | ||||
| -rw-r--r-- | layouts/_partials/posts/action-menu/webmention-section.html | 17 |
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" |
