An useful tool for generate breadcrumb navigation with microdata markup
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

hexo-breadcrumb

An useful tool for generate breadcrumb navigation with microdata markup for hexo posts

Install

$ npm install hexo-breadcrumb --save-dev

Usage

Config

Property Type Value
display boolean hidden breadcrumb html list or not by css property
homepage record Overwrite homepage link context

First add configuration in _config.yml from your hexo project.

breadcrumb:
  display: true

Second, print out the breadcrumb in post layout

<%- post.breadcrumb.html %>

Tips

  • To overwrite homepage link do same as below:
    breadcrumb:
      display: true
      homepage:
        title: Home
        url: http://example.com # should be absolute address
  • To hide breadcrumb html list in css way just set display property to false

License

MIT