Just a small test post for inserting images in Hexo.
Setup steps:
- Set
post_asset_foldertotruein Hexo’s_config.yml. - When you create a new post with
hexo new [my_post_name], Hexo creates both a Markdown file and a directory undersource/_posts:
1 | my_post_name.md |
- Put the image files into the
my_post_namedirectory. - Insert the image in the post like this:
1 |  |
For example:
1 |  |
That produces:

One thing to note is that this kind of inserted image does not show up on the homepage excerpt. It only appears inside the post content itself.