Index LunarJs plugin for Jekyll
Gem Version : 1.0.0
You can install the gem in local with shell script
$ ./make_gem.sh
You have to install lunr.js into the javascript folder of middlemanapp project
$ bower install lunr.js
Add the following to your site's Gemfile
gem 'jekyll_lunrjs'
And add the following to your site's _config.yml
plugins:
- jekyll_lunrjs
#lunrjs indexer options
lunr_folder_json: '/_site/assets/json' #
folder_lunar_js: '/_site/assets/js/lunr/lunr.js' # folder to javascript lunrjs
Add into Front Matter block(post,pages):
metadata:
tags: gems,ruby,develop
- Fork it ( https://github.com/jnovos/LunrJs-Jekyll/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
See the LunrJs-Jekyll documentation for generating Indexing.