Added webp

This commit is contained in:
2017-11-09 19:24:29 +01:00
parent 3e9c2dc746
commit 06da1b9455
6 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ component AnimeList(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User
tr.anime-list-item.mountable(title=item.Notes, data-api="/api/animelist/" + animeList.UserID + "/field/Items[AnimeID=\"" + item.AnimeID + "\"]")
td.anime-list-item-image-container
a.ajax(href=item.Anime().Link())
img.anime-list-item-image.lazy(data-src=item.Anime().Image("small"), alt=item.Anime().Title.ByUser(user))
img.anime-list-item-image.lazy(data-src=item.Anime().Image("small"), , data-webp="true", alt=item.Anime().Title.ByUser(user))
td.anime-list-item-name
a.ajax(href=item.Link(animeList.User().Nick))= item.Anime().Title.ByUser(user)