From 503584a543d77513717413cbc4a3f008481cde7e Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Fri, 30 Aug 2019 07:24:07 +0100 Subject: [PATCH] fix(cloudinary): Statically not support animated webp --- scripts/cloudinary.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/cloudinary.js b/scripts/cloudinary.js index a789a00..f45d8d6 100644 --- a/scripts/cloudinary.js +++ b/scripts/cloudinary.js @@ -20,7 +20,10 @@ hexo.extend.tag.register('cloudinary', (args) => { modern = fileName.replace(/\.png$/, '.webp') legacy = fileName } else if (fileName.endsWith('.webp')) { - modern = fileName + // Statically doesn't support animated webp + // https://github.com/marsble/statically/issues/36 + // modern = fileName + modern = fileName.replace(/\.webp$/, '.gif') legacy = fileName.replace(/\.webp$/, '.gif') } else { legacy = fileName