Hugo-Lunr-Indexer (HLI)
Generate Lunr indexes for Hugo static sites by parsing front matter.
Installation
Install with npm
$ npm install hugo-lunr-indexer
Usage
CLI
################### # Default options # ################### $ hli \ # hli -> hugo-lunr-indexer -i "content/**" \ # input (path) -o "public/lunr.json" \ # output (path) -l "toml" # language (toml | yaml) -d "+++" # delimiter (toml: +++ | yaml: ---)
NPM Scripts
..."scripts": "index": "hli -i 'content/posts/**' -o 'public/indices/lunr.json' -l 'yaml' -d '---'"...
$ npm run index
API
var hli = ;var Indexer = ;Indexer;Indexer;Indexer;Indexer;Indexerindex;
Sites using hugo-lunr-indexer
License
Apache-2.0 © Travis Clarke