https://github.com/wayou/hexo-filter-pathfix
using absolute path for assets in posts
https://github.com/wayou/hexo-filter-pathfix
Last synced: 6 months ago
JSON representation
using absolute path for assets in posts
- Host: GitHub
- URL: https://github.com/wayou/hexo-filter-pathfix
- Owner: wayou
- License: isc
- Created: 2016-04-24T05:57:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-08T11:41:24.000Z (over 8 years ago)
- Last Synced: 2025-03-24T17:52:28.523Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-filter-pathfix
using absolute path for assets in posts.
enabling hexo `post_asset_folder` only makes the relative asset path work in post page, while in other page like index,category and tag the path will broken.[](http://travis-ci.org/wayou/hexo-filter-pathfix)
[](https://david-dm.org/wayou/hexo-filter-pathfix)## Installation
```
npm install --save hexo-filter-pathfix
```## Usage
- install package
- enable `post_asset_folder` in your hexo config file `_config.yml`
- reference assets in relative path in your post## Example
```markdown

```
the above will produce:
```html![]()
```## Credits
[wayou](https://github.com/wayou/)## License
MIT