Skip to content

Commit

Permalink
brute force revert to check pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cstns committed Oct 10, 2024
1 parent 246170e commit dad5983
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/_includes/layouts/common-js.njk
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@
const searchScope = document.head.querySelector('[property="article:section"][content]')?.content ?? '';
function initSearchBar() {
const {autocomplete, getAlgoliaResults} = window['@algolia/autocomplete-js'];
const searchClient = algoliasearch('KWE0727TZS', '595ee07f069991380e9c3036cfad8e5e');
const scopeTitles = {
'ama': 'Ask Me Anything',
'blog': 'Blog',
'changelog': 'Changelog',
'customer-stories': 'Customer Stories',
'docs': 'Docs',
'ebooks': 'E-Books',
'handbook': 'Handbook',
'node-red': 'Node-RED',
'webinars': 'Webinars',
}
const placeholder = Object.prototype.hasOwnProperty.call(scopeTitles, searchScope) ? `Search in ${scopeTitles[searchScope]}...` : 'Search...'
}
</script>
Expand Down

0 comments on commit dad5983

Please sign in to comment.