1.0.0 • Published 4 years ago

hexo-friendly-link v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

hexo-friendly-link

Automatically generate friendly permalink for Hexo.

Installation

npm install hexo-friendly-link --save

Usage

Modify permalink in _config.yml:

permalink: :friendly_link/

How it works

hexo-friendly-link works by generating the hex encoded unix timestamp, it uses the published date of the post.

Limitation

If you modify the published date of the post, the generated link will be different. Or if multiple posts are created in the same second, the generated links are the same. In these case, the generated links are unstable. But for most personal blog sites, these are unlikely to happen.

License

MIT