mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
Add Algolia search
This commit is contained in:
parent
1d696eb4de
commit
208c48130d
7 changed files with 45 additions and 180 deletions
9
src/resources/js/common.js
Normal file
9
src/resources/js/common.js
Normal 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
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue