hexo-asset-image icon indicating copy to clipboard operation
hexo-asset-image copied to clipboard

Give asset image in hexo a absolutely path automatically

Results 28 hexo-asset-image issues
Sort by recently updated
recently updated
newest added

报错如下: > TypeError: Cannot read property 'replace' of undefined > at Object. (E:\HEXOBLOG\node_modules\hexo-asset-image\index.js:31:38) > at initialize.exports.each (E:\HEXOBLOG\node_modules\hexo-asset-image\node_modules\cheerio\lib\api\traversing.js:293:24) > at Hexo. (E:\HEXOBLOG\node_modules\hexo-asset-image\index.js:29:16) 请问这是什么原因? 我使用旧版的 NexT(4.0.0) 就可以编译通过。

1.0.0版本17-26行代码如下: ``` if(/.*\/index\.html$/.test(link)) { // when permalink is end with index.html, for example 2019/02/20/xxtitle/index.html // image in xxtitle/ will go to xxtitle/index/ appendLink = 'index/'; var endPos = link.lastIndexOf('/'); }...

域名: xxx.github.io 1.0.0版本第26行代码 ``` link = link.substring(beginPos, endPos) + '/' + appendLink ``` 当endPos小于beginPos的时候,link会往回取字符串.io 导致img url 多了/.io ,从而获取不到正确的图片路径,希望可以改善一下这个地方哈,THX

感谢贡献代码,此次提交解决了代码中存在的bug:无法为标题以'http'开头的文章进行图片src替换。 我更新了正则表达式,经过测试已经修复bug。

# Environmet * NexT theme version 7.4.0 from GitHub release; * `hexo-asset-link` installed with `npm install --s` * `post_asset_folder` option turned on in `_config.yml` * windows10 1909 ## show the...

// if config.root not '/',skip it others may double,fix the problem,hope accept for example, `url: http://zimolove3.gitee.io/blog/ root: /blog` in your project,this may generate url like this "**/blog**/blog/about/index/1565320816536.png",it's wrong.the right should...

如果在代码区域中出现 `` 之类的标签,使用这个插件后会使得 `` 无法显示。 如果是 ```md `` ``` 正常情况下会被解释为 ```md ``` 而使用这个插件以后会被解释为 ```md ``` 如此 `` 就无法被显示出来。 不知道是什么原因产生的 bug。

请问在本地进行测试时,是不能看到图片的吗?

在_config.yml中设置permalink字段为`.html`结尾时,图片的路径会出问题 ![image](https://user-images.githubusercontent.com/18758168/64761445-ab62ab80-d56e-11e9-9781-f15112e82c4b.png) 图片的路径会直接变成根目录下的图片 ![image](https://user-images.githubusercontent.com/18758168/64761589-fbda0900-d56e-11e9-87b9-f68976220613.png)