1. Modify post_asset_folder option of _config.yml to true
post_asset_folder: true |
2. Mark off some code on ./node_modules/hexo-asset-image/index.js
// $('img').each(function(){ |
3. Use Markdown / Hexo syntax in your post.md to show the picture
- Markdown Syntax

- Hexo Syntax
{% asset_img saber.jpg This is an example image %}

4. Don’t forget to rebuild your blog
hexo clean && hexo g && hexo s # show the blog in local server |