hexo-nanoid
Use ai/nanoid to generate abbreviated post links.
Features
- Compatible with
hexo new
to generate ID for new posts. - ID validatation on existing posts to ensure the uniqueness.
- Ability to autofix invalid and conflicted post IDs.
- Event
nanoid:generate
is emitted after each ID generation.
Configuration
The following list shows the descending precedence of config files. (The first one presented is used.)
- Key
nanoid
in<hexo_root>/_config.yml
- Key
theme_config.nanoid
in<hexo_root>/_config.yml
- Key
nanoid
in<hexo_root>/themes/<theme_name>/_config.yml
- Inline default config