From 024ac67308654d17cb23cde01e18cfb852b3cb1a Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Tue, 3 Sep 2019 17:40:30 +0100 Subject: [PATCH] feat(img): reverse proxy /img/ to cdn --- scripts/cloudinary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cloudinary.js b/scripts/cloudinary.js index e067aad..338aeba 100644 --- a/scripts/cloudinary.js +++ b/scripts/cloudinary.js @@ -14,7 +14,7 @@ hexo.extend.tag.register('cloudinary', (args) => { if (!alt) alt = '' let modern = '' let legacy = '' - const link = 'https://cdn.statically.io/img/res.cloudinary.com/' + user + const link = '/img/' + user if (fileName.endsWith('.png')) { modern = fileName.replace(/\.png$/, '.webp')