diff options
| -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> |
