首先確認根目錄_config.yml中有:
post_asset_folder: true
然后在blog/下執行
npm install https://github.com/CodeFalling/hexo-asset-image --save
確保在blog/source/_posts下創建和md文件同名的目錄,在里面放該md需要的圖片,然后在md中插入

在md文件中插入圖片時只需寫

配置完成之后,執行下列操作
$ hexo c
$ hexo g
$ hexo s