hexo-insert-images

2025-05-14 59
1
2
npm install hexo-asset-img --save
# not hexo-asset-image

configure Typora like this:


edit _config.yml:

1
2
3
4
post_asset_folder: true
marked:
prependRoot: true
postAsset: true

edit scaffolds/post.md, add a line:

1
typora-root-url: {{ title }}

Then, you can edit blogs in Typora and review them just as you see. The link of image file is like this:

1
![](./typora_img_setting.webp)