hexo-heading-numbering
v1.0.1
Published
Automatically add numbered index for the headings in hexo post.
Downloads
24
Readme
hexo-heading-numbering
Automatically add numbered index for the headings in hexo post.
Example
Assume the post is:
# Top heading
## Sub heading
## Another sub heading
# Another top headingThen it will be rendered as:
1 Top heading
1.1 Sub heading
1.2 Another sub heading
2 Another top headingUsage
- Run following command in your blog directory.
npm install hexo-heading-numbering --save- Add following content in
_config.yml(under blog root directory).
heading_numbering:
enable: true
separator: "."
prefix: ""
suffix: " "- Clean and rebuild.
hexo cl && hexo gSupport
Hexo v5.x (Tested on v5.4.0)
License
MIT
