diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-04-19 23:10:12 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-04-19 23:10:12 +0300 |
commit | 9ac5ca8ff24b7d19ba0303296c06ce1daa181698 (patch) | |
tree | 03c33fdfc91d2c4e15cb2ba5f160349b2e6c8aec /layouts/docsearch.html | |
parent | 8e1ec002926c75405c8e32f71c7bba6efdf3e49b (diff) |
Fix google search snippet, add search-on-enter feature
Diffstat (limited to 'layouts/docsearch.html')
-rw-r--r-- | layouts/docsearch.html | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/layouts/docsearch.html b/layouts/docsearch.html index d76d93ed..72da891d 100644 --- a/layouts/docsearch.html +++ b/layouts/docsearch.html @@ -1,16 +1,19 @@ <!-- Algolia docsearch https://community.algolia.com/docsearch/ --> <script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script> <script type="text/javascript"> -docsearch({ -apiKey: 'ce1690e1421303458a1fcbea0cc4a927', -indexName: 'gitlab', -inputSelector: '.docsearch', -algoliaOptions: { - // Filter by tags as described in https://github.com/algolia/docsearch-configs/blob/master/configs/gitlab.json - 'filters': "tags:gitlab OR tags:omnibus OR tags:runner", - // Number of results shown in the search dropdown - 'hitsPerPage': 10 -}, -debug: false // Set debug to true if you want to inspect the dropdown - }); +var search = docsearch({ + apiKey: 'ce1690e1421303458a1fcbea0cc4a927', + indexName: 'gitlab', + inputSelector: '.docsearch', + algoliaOptions: { + // Filter by tags as described in https://github.com/algolia/docsearch-configs/blob/master/configs/gitlab.json + 'filters': "tags:gitlab OR tags:omnibus OR tags:runner", + // Number of results shown in the search dropdown + 'hitsPerPage': 10 + }, + debug: false, // Set debug to true if you want to inspect the dropdown + autocompleteOptions: { + 'autoselect': false + } +}); </script> |