1 文章内图像

hexo 3.9 下 ”![](img.png)“ 会被渲染成 ”/.io/xxx.png“. 实际图片不能正常显示

去掉 .io

修改下 \node_modules\hexo-asset-image\index.js

1
2
3
> //$(this).attr('src', config.root + link  + src);
> $(this).attr('src', src);
>

2 首页图像

在 description 里添加 < img src=’../../images/1.PNG’ >, 只能用单引号。

第一页的话不需要 ”../../“ ,第二页开始就需要了。但是加了第一页也不会出问题。