Skip to content

stormz/nanoc-algolia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Nanoc algolia

Index an item in algolia

It use nokogiri and algolia.

Note: It doesn't allow quering the index, it cannot works with nanoc. You should probably use the javascript integration.

Install

gem install nanoc-algolia

If you use bundler, add it to your Gemfile:

gem "nanoc-algolia", "~> 0.0.1"

Usage

Add to lib/default.rb:

require 'nanoc-algolia'

Add to config.yaml:

algolia:
  application_id: your_application_id
  api_key: your_api_key
  index: your_index_name

Add a filter at the compile time to use it:

compile '*' do
  filter :algolia
  filter :erb
  layout 'default'
end

License

(c) 2011 Pascal Widdershoven (https://github.com/PascalW/jekyll_indextank) (c) 2015 Stormz

This code is free to use under the terms of the MIT license

About

Index items from a nanoc site to algolia

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages