Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

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

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

Comments

@yuanxiaosi
Copy link

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
Copy link

这个问题已经修复了

var endPos = link.length-1;

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

@eonun
Copy link

eonun commented Jul 24, 2019

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

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

@eonun
Copy link

eonun commented Jul 24, 2019

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

@xblover
Copy link

xblover commented Aug 11, 2019

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

@caoruiy
Copy link

caoruiy commented Nov 21, 2019

这个问题已经修复了

var endPos = link.length-1;

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

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

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

@CoCo1er
Copy link

CoCo1er commented Feb 16, 2020

  • [email protected]
    added 20 packages from 11 contributors and audited 2735 packages in 8.421s
    found 3 vulnerabilities (1 low, 2 high)
    请问这个怎么处理呢?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants