From e2bca4dce25904c6d488d7a960980cffd6939ba7 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 9 Nov 2017 19:45:41 +0100 Subject: [PATCH] Added webp to soundtracks --- mixins/SoundTrack.pixy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixins/SoundTrack.pixy b/mixins/SoundTrack.pixy index ea863e27..6a921c4c 100644 --- a/mixins/SoundTrack.pixy +++ b/mixins/SoundTrack.pixy @@ -10,7 +10,7 @@ component SoundTrackContent(track *arn.SoundTrack, media *arn.ExternalMedia) .sound-track-content if track.MainAnime() != nil 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)