From cc284b1bc25527a9e002c9b80eda98efb085e65d Mon Sep 17 00:00:00 2001 From: eltrac Date: Wed, 18 Mar 2026 17:47:11 +0800 Subject: feat(webmention): display mention without microformats better --- layouts/_partials/posts/webmention-mentions.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/layouts/_partials/posts/webmention-mentions.html b/layouts/_partials/posts/webmention-mentions.html index 2af5f79d..ab6642a8 100644 --- a/layouts/_partials/posts/webmention-mentions.html +++ b/layouts/_partials/posts/webmention-mentions.html @@ -11,12 +11,16 @@ {{ $photo := or (index . "extra" "proxied-photo") (index $author.photo 0) }}
  • - - {{ index $author.name 0 }} - {{ T "webmention.mentionedThisPost" . }} + + {{ index $author.name 0 }} + {{ T "webmention.mentionedThisPost" . }}
  • {{ else }} -
  • {{ .webmention.source }}
  • +
  • + {{ $u := urls.Parse .webmention.source }} +
    + {{ $u.Hostname }} + {{ T "webmention.mentionedThisPost" . }}
  • {{ end }} {{ end }} -- cgit v1.2.3