diff options
| author | eltrac <hi@eltr.ac> | 2026-03-18 17:47:11 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-18 17:47:11 +0800 |
| commit | cc284b1bc25527a9e002c9b80eda98efb085e65d (patch) | |
| tree | ad0f6fec0d7c491408869b3980ff386ad0db3533 /layouts/_partials | |
| parent | cb79aea25bf238c9e33e3c0a02436f848cf0b442 (diff) | |
feat(webmention): display mention without microformats better
Diffstat (limited to 'layouts/_partials')
| -rw-r--r-- | layouts/_partials/posts/webmention-mentions.html | 12 |
1 files 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) }} <li class="flex gap-2"> - <img src="{{ $photo }}" class="h-5 w-5 rd-full w-auto inline m-0"> - <a href="{{ index $author.url 0 }}">{{ index $author.name 0 }}</a> - <a href="{{ .webmention.source }}">{{ T "webmention.mentionedThisPost" . }}</a> + <img src="{{ $photo }}" class="h-5 w-5 rd-full inline m-0"> + <a href="{{ index $author.url 0 }}" target="_blank">{{ index $author.name 0 }}</a> + <a href="{{ .webmention.source }}" target="_blank">{{ T "webmention.mentionedThisPost" . }}</a> </li> {{ else }} - <li><a href="{{ .webmention.source }}" target="_blank">{{ .webmention.source }}</a></li> + <li class="flex gap-2"> + {{ $u := urls.Parse .webmention.source }} + <div class="h-5 w-5 rd-full m-0 bg-neutral-300"></div> + <span>{{ $u.Hostname }}</span> + <a href="{{ .webmention.source }}" target="_blank">{{ T "webmention.mentionedThisPost" . }}</a></li> {{ end }} {{ end }} </ul> |
