hexo-generator-lunr

1.0.5 • Public • Published

hexo-generator-lunr

Lunr index generator plugin for Hexo, compatible with Chinese.

How to use

In your _config.yml, add the following configs.

# lunr
## field - post | page | all, default is post
## fulltext - If fulltext is true, lunr will index the whole post's `content`, or `title` and `excerpt` will be indexed only. If you use full text index, the generation will be slow.
## path - where should lunr put it's indexed data
lunr:
  field: all
  fulltext: true
  path: assets/lunr/

About Lunr.js

Simple full-text search in your browser

For more details about Lunr.js, please check out the Lunr.js official site.

In order to make Lunr to be compatible with Chinese, hexo-generator-lunr uses this forked version mamboer/lunr.js.

Package Sidebar

Install

npm i hexo-generator-lunr

Weekly Downloads

1

Version

1.0.5

License

MIT

Last publish

Collaborators

  • mamboer