hexo文章引入图片配置

一:把主页配置文件_config.yml 里的post_asset_folder:设置为true

二:npm install hexo-asset-image –save

三:hexo new “xxxx”来生成md文件时,/source/_posts文件夹内除了xxxx.md文件还会生成一个同名的文件夹

四:把xxx.md中要引入图片放到xxx文件夹里。使用 图片上传失败 引入图片,只需要图片名字,不需要写路径。