Improved UserLink favicons using favicone.com
This commit is contained in:
parent
d2e2b9a1ce
commit
ba31eeda04
|
@ -1,7 +1,7 @@
|
||||||
@using Wave.Data
|
@using Wave.Data
|
||||||
|
|
||||||
<a href="@Link.UrlString" rel="me" target="_blank" title="@Link.Url.Host" @attributes="AdditionalAttributes">
|
<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)
|
@(Link.Url.Host.LastIndexOf('.') > -1 ? Link.Url.Host[..Link.Url.Host.LastIndexOf('.')] : Link.Url.Host)
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue