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
PLEASE BACKUP YOUR EXISTING FILES BEFORE USING THIS SCRIPT
npm install --save hexo-incremental-id
I agree with you. You may check this article for a better solution(I did not verify though): https://lqwang.net/32.html
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.