【Hexo】hexo在文章中添加图片

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010996565/article/details/89196612

hexo 添加图片插件

安装图片插件

npm install hexo-asset-image --save

在这里插入图片描述

在_config.yml配置文件中,修改为 post_asset_folder: true, 然后新建一篇文章

hexo new post ceshi

在这里插入图片描述

这个时候会出现一个ceshi.md 和 ceshi的文件夹

然后就可以在文章中引用了 在这里插入图片描述

重新编译一下 然后启动服务

在这里插入图片描述

当然也可以使用cdn来存储图片,这样速度会相对来说快一点

猜你喜欢

转载自blog.csdn.net/u010996565/article/details/89196612