HTML5 valid
This commit is contained in:
parent
3ae0e51110
commit
8d07099cea
@ -3,7 +3,7 @@ component Sidebar(user *arn.User)
|
|||||||
if user != nil
|
if user != nil
|
||||||
Avatar(user)
|
Avatar(user)
|
||||||
else
|
else
|
||||||
img.user-image.lazy(data-src="/images/brand/64.png", data-webp="true", alt="Anime Notifier")
|
img.user-image.lazy(src=utils.EmptyImage(), data-src="/images/brand/64.png", data-webp="true", alt="Anime Notifier")
|
||||||
|
|
||||||
if user != nil
|
if user != nil
|
||||||
SidebarButton("Home", "/animelist/watching", "home")
|
SidebarButton("Home", "/animelist/watching", "home")
|
||||||
|
6
utils/EmptyImage.go
Normal file
6
utils/EmptyImage.go
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
package utils
|
||||||
|
|
||||||
|
// EmptyImage returns the smallest possible 1x1 pixel image encoded in Base64.
|
||||||
|
func EmptyImage() string {
|
||||||
|
return "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user