Allow the user to set matter language (toml or yaml).
Usage:
CLI flag:
hugo-lunr -l toml # default
hugo-lunr -l yaml
API:
var hugolunr = require('../');
var indexer = new hugolunr();
indexer.setInput('content/faq/**');
indexer.setOutput('public/faq.json');
indexer.setLanguage('toml');
indexer.index();
# ... OR using index()
indexer.index('content/faq/**', 'public/faq.json', 'yaml');
Allow the user to set matter language (
toml
oryaml
).Usage:
CLI flag:
API: