diff --git a/scripts/cloudinary.js b/scripts/cloudinary.js
index 771949c..63fc389 100644
--- a/scripts/cloudinary.js
+++ b/scripts/cloudinary.js
@@ -11,11 +11,13 @@
* https://hexo.io/api/tag
* https://cloudinary.com/documentation/responsive_images
*/
+
hexo.extend.tag.register('cloudinary', (args) => {
const fileName = args[0]
const alt = args[1] || ''
let modern = ''
let legacy = ''
+ const cloudinary = 'https://res.cloudinary.com/curben/image/upload/w_auto,f_auto,q_auto,c_scale/c_limit,'
if (fileName.endsWith('.png')) {
modern = fileName.replace(/\.png$/, '.webp')
@@ -29,33 +31,51 @@ hexo.extend.tag.register('cloudinary', (args) => {
return `
`
} else {
return `
- `
+ `
}
})