A NexT plugin that adds an anchor to every heading.
Go to your Hexo root directory, then run this command:
npm i hexo-theme-next-anchor
You need to write following options into your NexT configuration file.
anchor:
enable: true
color: '#0e83cd'
position: right # If left, anchors will always be visible.
margin: 7px
text: '#'
icon:
# If true, the `text` option will be ignored.
enable: false
# By default, NexT has built-in FontAwesome support.
# This option means `font-family: FontAwesome`, so DO Not change it.
# Also you can choose ForkAwesome, but that's another story.
font: FontAwesome
content: \f0c1 # CSS content for FontAwesome & ForkAwesome.
This plugin was modified from Hexo Site.