refactor(cloudinary): remove unused w_auto and c_scale parameters

* only applicable in Cloudinary js library
This commit is contained in:
curben 2019-08-25 18:41:52 +09:30
parent a75a36714b
commit c59f1c0740
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ hexo.extend.tag.register('cloudinary', (args) => {
let modern = '' let modern = ''
let legacy = '' let legacy = ''
const cloudinary = 'https://res.cloudinary.com/' + user + const cloudinary = 'https://res.cloudinary.com/' + user +
'/image/upload/w_auto,f_auto,q_auto,c_scale/c_limit,' '/image/upload/f_auto,q_auto/c_limit,'
if (fileName.endsWith('.png')) { if (fileName.endsWith('.png')) {
modern = fileName.replace(/\.png$/, '.webp') modern = fileName.replace(/\.png$/, '.webp')