hexo-asset-img
English | 中文
🍰 Hexo local image plugin: Convert the relative path of the image to asset_img
Intro
Use this plug-in to realize the preview of Markdown editors such as Typora and Hexo release preview, both of which can display pictures normally
Usage
npm install hexo-asset-img --save
hexo-typora
├── apppicker.jpg
├── logo.png
└── rules.jpg
hexo-typora.md
Make sure post_asset_folder: true
in your _config.yml
.
hexo-typora.md
: Just use 
to insert logo.png
.
Use with Typora
Origin
hexo-asset-image No longer valid, probably starting from Hexo 5
, and this repository has been archived
Q: 为什么使用本地图片 而不是网络图片 (图床) ?
A:
- 第三方图床不稳定, 容易丢失图片
- 自行搭建图床, 随着上传错误图片, 删除文章而没有删除关联图片 次数的增多, 未引用图片越来越多, 图床中也越来越多的无用冗余图片, 还不方便删除, 也容易误删除
- 本地图片 与 文章在一个文件夹, 易打包, 在无网络或网络较差时也能预览
- 本地图片 放在与 文章文件名同名文件夹内 方便管理
Add:
Manymarkdown editors
provide to paste pictures into a local picture folder. The file names of these pictures are usually not easy to read and long. If you delete the picture reference in the article every time, you must manually delete the corresponding picture, and delete the article, manually delete the association The picture folder is more troublesome, but if you don’t delete it, there will be more and more unquoted pictures, so thedelete unquoted pictures tool
came into being!
https://github.com/yiyungent/coo
Related Projects
Donate
hexo-asset-img is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
We accept donations through these channels:
Author
hexo-asset-img © yiyun, Released under the MIT License.
Authored and maintained by yiyun with help from contributors (list).
GitHub @yiyungent Gitee @yiyungent