Skip to content

Give asset image in hexo a absolutely path automatically

License

Notifications You must be signed in to change notification settings

isGuard/hexo-asset-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-asset-image

自动为hexo中的资产图片提供绝对路径

安装

npm install hexo-asset-image --save

目录

MacGesture2-Publish
├── apppicker.jpg
├── logo.jpg
└── rules.jpg
MacGesture2-Publish.md

确保 Hexo 目录下的_config.ymlpost_asset_folder: true

使用需要 ![logo](目录名称/logo.jpg) 图片路径为 目录名称/logo.jpg.

历史

2021-08-11: 更换主题Fluid,发现又不能用了,修改index.js读取img的src

2020-03-18: 为了配合本地的图片访问添加了目录名称

2018-04-18: 支持 hexo-abbrlink

About

Give asset image in hexo a absolutely path automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%