mirror of https://gitlab.com/curben/blog
feat(cloudinary): add original resolution image link
* increase width and limit height for embedded image
This commit is contained in:
parent
b9db47fe8c
commit
2e017ecf98
|
@ -16,5 +16,5 @@ hexo.extend.tag.register('cloudinary', (args) => {
|
||||||
alt = args[1]
|
alt = args[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<img class="cld-responsive" data-src="https://res.cloudinary.com/curben/image/upload/w_auto,f_auto,q_auto,c_scale/c_limit,w_500/' + fileName + '" src="/svg/loading.svg" alt="' + alt + '">'
|
return '<a href="https://res.cloudinary.com/curben/' + fileName + '"><img class="cld-responsive" data-src="https://res.cloudinary.com/curben/image/upload/w_auto,f_auto,q_auto,c_scale/c_limit,w_600,h_400/' + fileName + '" src="/svg/loading.svg" alt="' + alt + '"></a>'
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue