Added webp to soundtracks

This commit is contained in:
Eduard Urbach 2017-11-09 19:45:41 +01:00
parent 6e0b8b3ce9
commit e2bca4dce2

View File

@ -10,7 +10,7 @@ component SoundTrackContent(track *arn.SoundTrack, media *arn.ExternalMedia)
.sound-track-content .sound-track-content
if track.MainAnime() != nil if track.MainAnime() != nil
a.sound-track-anime-link.ajax(href="/anime/" + track.MainAnime().ID) a.sound-track-anime-link.ajax(href="/anime/" + track.MainAnime().ID)
img.sound-track-anime-image.lazy(data-src=track.MainAnime().Image("medium"), alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical) img.sound-track-anime-image.lazy(data-src=track.MainAnime().Image("medium"), data-webp="true", alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
ExternalMedia(media) ExternalMedia(media)