Algolia Search for NexT
Change dir to NexT directory. There must be layout
, source
, languages
and other directories:
$ cd themes/next
$ ls
bower.json _config.yml docs gulpfile.coffee languages layout LICENSE.md package.json README.md scripts source test
Install module to source/lib
directory:
$ git clone https://github.com/theme-next/theme-next-algolia-instant-search source/lib/algolia-instant-search
Enable module in NexT _config.yml
file:
algolia_search:
enable: true
And, if you wants to use the CDN, then need to set:
vendors:
...
algolia_instant_js: //cdn.jsdelivr.net/npm/instantsearch.js@latest/dist/instantsearch.js
algolia_instant_css: //cdn.jsdelivr.net/npm/instantsearch.js@latest/dist/instantsearch.min.css
$ cd themes/next/source/lib/algolia-instant-search
$ git pull