hexo how to insert a picture when writing blog

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/weixin_40688217/article/details/90110975

1. Home Profile _config.yml in the post_asset_folder: This option is set to true (if not do not have control)
Here Insert Picture Description
2. Perform saying in cmd under your hexo directory npm install hexo-asset-image –save, it is possible to download and install a local upload picture plug

3. After the installation is complete, then run hexo n “title”time to generate md Bowen, / source / _posts addition to the file folder and a file with the same name title.md clip
Here Insert Picture Description
Here Insert Picture Description
4 is introduced pictures, images copied to the first title in the title.md this folder, and then only need to introduce the picture format in accordance with markdown title.md in:

Here Insert Picture Description
Finally, look at the results:
Here Insert Picture Description

Of course, if the above manner is not suitable for you, you can also reference by way of CDN will address directly used to quote.

Guess you like

Origin blog.csdn.net/weixin_40688217/article/details/90110975