mirror of https://gitlab.com/curben/blog
fix(cloudinary): Statically not support animated webp
This commit is contained in:
parent
bde71fd644
commit
503584a543
|
@ -20,7 +20,10 @@ hexo.extend.tag.register('cloudinary', (args) => {
|
||||||
modern = fileName.replace(/\.png$/, '.webp')
|
modern = fileName.replace(/\.png$/, '.webp')
|
||||||
legacy = fileName
|
legacy = fileName
|
||||||
} else if (fileName.endsWith('.webp')) {
|
} 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')
|
legacy = fileName.replace(/\.webp$/, '.gif')
|
||||||
} else {
|
} else {
|
||||||
legacy = fileName
|
legacy = fileName
|
||||||
|
|
Loading…
Reference in New Issue