UNPKG

hugo-lunr

Version:

Generate lunr.js index files for Hugo static site search

7 lines (6 loc) 172 B
#!/usr/bin/env node var hugolunr = require('../'); var indexer = new hugolunr(); indexer.setInput('content/faq/**'); indexer.setOutput('public/faq.json'); indexer.index();