Add Algolia search

This commit is contained in:
Matthew Holt 2020-03-26 12:57:10 -06:00
parent 1d696eb4de
commit 208c48130d
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
7 changed files with 45 additions and 180 deletions

View file

@ -0,0 +1,9 @@
document.addEventListener('DOMContentLoaded', function() {
// Algolia search
docsearch({
apiKey: '14275a785f6ebd31d162f9d2d8fc0125',
indexName: 'caddyserver',
inputSelector: '#search',
debug: true // Set debug to true if you want to inspect the dropdown
});
});