mirror of https://gitlab.com/curben/blog
fix(img-embed): original image in /img/ path
- join() removes double slash in https://
This commit is contained in:
parent
48ce083ea6
commit
ce9349e918
|
@ -28,7 +28,7 @@ hexo.extend.filter.register('marked:renderer', (renderer) => {
|
||||||
return url.pathname + url.search
|
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,` +
|
`<img srcset="${fLink(href, 320)} 320w,` +
|
||||||
`${fLink(href, 468)} 468w,` +
|
`${fLink(href, 468)} 468w,` +
|
||||||
`${fLink(href, 768)} 768w,` +
|
`${fLink(href, 768)} 768w,` +
|
||||||
|
|
Loading…
Reference in New Issue