Improved UserLink favicons using favicone.com

This commit is contained in:
Mia Rose Winter 2024-02-03 19:12:04 +01:00
parent d2e2b9a1ce
commit ba31eeda04
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -1,7 +1,7 @@
@using Wave.Data
<a href="@Link.UrlString" rel="me" target="_blank" title="@Link.Url.Host" @attributes="AdditionalAttributes">
<img src="@("https://" + Link.Url.Host + "/favicon.png")" alt="" width="16" height="16" />
<img src="@("https://favicone.com/" + Link.Url.Host + "?s=32")" alt="" width="32" height="32" class="w-5 h-5" />
@(Link.Url.Host.LastIndexOf('.') > -1 ? Link.Url.Host[..Link.Url.Host.LastIndexOf('.')] : Link.Url.Host)
</a>