mirror of https://gitlab.com/curben/blog
feat(img): reverse proxy /img/ to cdn
This commit is contained in:
parent
7bd7df521a
commit
024ac67308
|
@ -14,7 +14,7 @@ hexo.extend.tag.register('cloudinary', (args) => {
|
||||||
if (!alt) alt = ''
|
if (!alt) alt = ''
|
||||||
let modern = ''
|
let modern = ''
|
||||||
let legacy = ''
|
let legacy = ''
|
||||||
const link = 'https://cdn.statically.io/img/res.cloudinary.com/' + user
|
const link = '/img/' + user
|
||||||
|
|
||||||
if (fileName.endsWith('.png')) {
|
if (fileName.endsWith('.png')) {
|
||||||
modern = fileName.replace(/\.png$/, '.webp')
|
modern = fileName.replace(/\.png$/, '.webp')
|
||||||
|
|
Loading…
Reference in New Issue