hexo-incremental-id
v0.1.2
Published
Ensures incremental id for pages
Downloads
5
Readme
Hexo incremental id
I can eat glass, it doesn't hurt me.
A script that adds an incremental id to all your pages, for those who prefer using fixed ids in permalink.
Attention! This script will scan all your markdown files under sources
folder every time you create new post, and all the methods are synchronous, you may encounter
- performance problems
- some old md files modified because a missing id is saved
Installation
PLEASE BACKUP YOUR EXISTING FILES BEFORE USING THIS SCRIPT
npm install --save hexo-incremental-id
FAQ
This script is ugly
I agree with you. if you have better / elegant way to handle a unique incremental id, please contact me.
No test?
No, no test. I've wasted several hours reading hexo docs and writing this script, I can't afford more. And this script is so brute-force that no one is supposed to use it, except me.