在hexo中结合typora使用本地图片

首先确认 站点下的 _config.yml中有post_asset_folder:true,在 hexo 目录,执行:

1
npm install https://github.com/CodeFalling/hexo-asset-image --save

此时创建:

1
hexo new MacGesture2-Publish

会出现:MacGesture2-Publish文件夹,MacGesture2-Publish.md两个文件

假设在:

1
2
3
4
5
MacGesture2-Publish
├── apppicker.jpg
├── logo.jpg
└── rules.jpg
MacGesture2-Publish.md

这样的目录结构(目录名和文章名一致),只要使用:

1
![logo](MacGesture2-Publish/logo.jpg)

就可以插入图片。