Home

Awesome

hexo-theme-next-anchor

travis-image hexo-image npm-image lic-image

A NexT plugin that adds an anchor to every heading.

Installation

size-image dm-image dt-image

Go to your Hexo root directory, then run this command:

npm i hexo-theme-next-anchor

Usage

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.

Thanks

This plugin was modified from Hexo Site.