mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2024-12-22 09:35:07 +01:00
add-webp-avif
This commit is contained in:
parent
ed06e518fa
commit
1efa621270
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user