feat(img): reverse proxy /img/ to cdn

This commit is contained in:
curben 2019-09-03 17:40:30 +01:00
parent 7bd7df521a
commit 024ac67308
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 1 additions and 1 deletions

View File

@ -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')