Add Images To Blog

Config

Update _config.yml

1
post_asset_folder: true

Then Hexo will create a folder every time you make a new post with the hexo new <title> command. This asset folder will have the same name as the markdown file associated with the post.

Referencing

1
2
3
{% asset_img slug [title] %}
# example
{% asset_img hello.jpeg "Hello World" %}