fix(img-embed): original image in /img/ path

- join() removes double slash in https://
This commit is contained in:
Ming Di Leom 2022-06-14 07:29:25 +00:00
parent 48ce083ea6
commit ce9349e918
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ hexo.extend.filter.register('marked:renderer', (renderer) => {
return url.pathname + url.search
}
return `<a href="${join('https://curben.gitlab.io/blog', href)}">` +
return `<a href="${join('/img', href)}">` +
`<img srcset="${fLink(href, 320)} 320w,` +
`${fLink(href, 468)} 468w,` +
`${fLink(href, 768)} 768w,` +