diff --git a/scripts/cloudinary.js b/scripts/cloudinary.js
index 5728945..aa291b1 100644
--- a/scripts/cloudinary.js
+++ b/scripts/cloudinary.js
@@ -10,7 +10,7 @@
hexo.extend.tag.register('cloudinary', (args) => {
const user = 'curben'
- const fileName = args[0]
+ let fileName = args[0]
const alt = args[1] || ''
let modern = ''
let legacy = ''
@@ -26,36 +26,37 @@ hexo.extend.tag.register('cloudinary', (args) => {
legacy = fileName
}
- const modernLink = link + '/' + modern + '?auto_format=false'
- const legacyLink = link + '/' + legacy + '?auto_format=false'
+ fileName += '?auto_format=false'
+ modern += '?auto_format=false'
+ legacy += '?auto_format=false'
const img = ``
if (fileName.endsWith('.png') || fileName.endsWith('.webp')) {
- return `
-