Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

域名是xxx.io的情况下,图片路径会从原本/xxx.jpg变成 /.io/xxx.jpg #47

Open
yuanxiaosi opened this issue Jun 14, 2019 · 5 comments

Comments

@yuanxiaosi
Copy link

@yuanxiaosi yuanxiaosi commented Jun 14, 2019

域名: xxx.github.io
1.0.0版本第26行代码

link = link.substring(beginPos, endPos) + '/' + appendLink

当endPos小于beginPos的时候,link会往回取字符串.io
导致img url 多了/.io ,从而获取不到正确的图片路径,希望可以改善一下这个地方哈,THX

@BerlinChan

This comment has been minimized.

Copy link

@BerlinChan BerlinChan commented Jul 18, 2019

这个问题已经修复了

var endPos = link.length-1;

但是我安装后代码还是旧的,我使用了 taobao npm mirror,我去同步了安装还是旧的

@eonun

This comment has been minimized.

Copy link

@eonun eonun commented Jul 24, 2019

使用yarn add hexo-asset-image安装的也会有链接错误问题

update link as:-->/.com//image0.png

@eonun

This comment has been minimized.

Copy link

@eonun eonun commented Jul 24, 2019

自行修改了24行内容可以使用

@xblover

This comment has been minimized.

Copy link

@xblover xblover commented Aug 11, 2019

我的解决方案是,直接添加图片的绝对路径 如:https://xblover.github.io/2019/07/16/hello/281408194971071086.jpg

@caoruiy

This comment has been minimized.

Copy link

@caoruiy caoruiy commented Nov 21, 2019

这个问题已经修复了

var endPos = link.length-1;

但是我安装后代码还是旧的,我使用了 taobao npm mirror,我去同步了安装还是旧的

目前做法是安装后手动修改代码,这样做还是不利于迁移。

期望作者可以同步更新下 npm 包的版本。npm包安装时还是旧版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.