0.1.2 • Published 10 years ago
hexo-filter-pathfix v0.1.2
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.
Installation
npm install --save hexo-filter-pathfixUsage
- install package
- enable
post_asset_folderin your hexo config file_config.yml - reference assets in relative path in your post
Example
the above will produce:
<img title="this is the cover" src="/2015/01/18/post-title/cover.jpg">Credits
License
MIT