官方hexo-asset-image
插件,在同时使用hexo-abbrlink
时,会导致图片路径错误。
本插件是基于官方插件的修改,为了兼容hexo-abbrlink
插件
Give asset image in hexo a absolutely path automatically
npm install https://github.com/foreveryang321/hexo-asset-image.git --save
同时使用hexo-abbrlink
root: /
permalink: posts/:abbrlink.html
abbrlink:
alg: crc32 # 算法:crc16(default) and crc32
rep: hex # 进制:dec(default) and hex
目录结构
MacGesture2-Publish
├── apppicker.jpg
├── logo.jpg
└── rules.jpg
MacGesture2-Publish.md
用法
Make sure post_asset_folder: true
in your _config.yml
.
Just use ![logo](logo.jpg)
Or ![logo](MacGesture2-Publish/logo.jpg)
Or ![logo](D:/MacGesture2-Publish/logo.jpg)
Or {% asset_img logo.jpg %}
to insert logo.jpg