forked from Git/hugo-story
1
0
Fork 0

add-webp-avif

This commit is contained in:
Brennen Smith 2022-08-22 21:42:39 -07:00
parent ed06e518fa
commit 1efa621270
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@
href = $a.attr('href');
// Not an image? Bail.
if (!href.match(/\.(jpg|gif|png|mp4)$/))
if (!href.match(/\.(jpg|gif|png|mp4|webp|avif)$/))
return;
// Prevent default.