# hexo-asset-image **Repository Path**: sweten/hexo-asset-image ## Basic Information - **Project Name**: hexo-asset-image - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-01-04 - **Last Updated**: 2021-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hexo-asset-image 指定替换图片资源路径 # 使用 ## 1.安装插件 ```shell npm install https://gitee.com/sweten/hexo-asset-image.git --save ``` ## 2.开启配置,在__config.yml文件添加2个配置项目 ```yml images_settle: true images_path: /images/ ``` images_settle为开关,true or false images_path配置图片资源的路径地址,对应源码存放source路径下 ```example weidu ├── source .. | images ├── logo.jpg └── rules.jpg 项目源码路径存放如上结构,则配置images_path: /images/ ``` # 移除 ```shell npm uninstall hexo-asset-image ``` # 结合Typora配套使用 指定Typora图片资源存放路径 ![Typora图片资源存放路径配置](https://images.gitee.com/uploads/images/2021/0104/195443_3fd46a3e_997370.png "屏幕截图.png") 配置了文件的绝对路径,hexo-asset-image也会进行适当的路径转换