Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

theme-next/hexo-theme-next-anchor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.