许久没写博客,换了电脑。从github上拉下来hexo博客,一顿操作。图片连接全error
通过查询,才知道hexo-asset-image插件有坑npm install后,需要修改hexo-asset-image/index.js代码
重点来了位置在58-59行,将原来获取图片路径的代码注释掉,改成下面的
// $(this).attr('src', config.root + link + src);// console.info&&console.info("update link as:-->"+config.root + link + src);$(this).attr('src', src);console.info && console.info("update link as:-->" + src);
修改后 hexo clean然后再 hexo s 图片回来了